Skip to content

Instantly share code, notes, and snippets.

@yakkomajuri
Created March 21, 2021 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakkomajuri/51e8ab27ddbd6871f8f5d615d4c6d3ff to your computer and use it in GitHub Desktop.
Save yakkomajuri/51e8ab27ddbd6871f8f5d615d4c6d3ff to your computer and use it in GitHub Desktop.
query ProfilePubHandlerQuery($id: ID, $username: ID, $homepagePostsLimit: PaginationLimit, $homepagePostsFrom: String, $includeDistributedResponses: Boolean) {
userResult(id: $id, username: $username) {
... on User {
id
name
username
bio
...ProfilePubScreen_user
}
}
}
fragment ProfilePubScreen_user on User {
id
...PublisherHomepagePosts_publisher
}
fragment PublisherHomepagePosts_publisher on Publisher {
id
homepagePostsConnection(paging: {limit: $homepagePostsLimit, from: $homepagePostsFrom}, includeDistributedResponses: $includeDistributedResponses) {
posts {
...PublisherHomepagePosts_post
}
pagingInfo {
next {
...PublisherHomepagePosts_pagingInfo
}
}
}
}
fragment PublisherHomepagePosts_post on Post {
...TruncatedPostCard_post
}
fragment PublisherHomepagePosts_pagingInfo on PageParams {
from
limit
}
fragment TruncatedPostCard_post on Post {
mediumUrl
firstPublishedAt
title
previewContent {
subtitle
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment