Guides

Get publications

Fetch all publications by the requested criteria

Request

PublicationsRequest

Invocation

const result = await client.publication.fetchAll({
  where: {
    from: ['0x123'],
  },
});
query Publications($request: PublicationsRequest!) {
  result: publications(request: $request) {
    items {
      ... on Post {
        ...Post
      }
      ... on Mirror {
        ...Mirror
      }
      ... on Comment {
        ...Comment
      }
      ... on Quote {
        ...Quote
      }
    }
    pageInfo {
      ...PaginatedResultInfo
    }
  }
}

Response

Paginated result with AnyPublications