Created
March 21, 2021 12:52
-
-
Save yakkomajuri/51e8ab27ddbd6871f8f5d615d4c6d3ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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