Skip to content

Instantly share code, notes, and snippets.

@mike820324
Created August 12, 2020 04:42
Show Gist options
  • Save mike820324/e5b120afa0bce57d1d599e7beadabb58 to your computer and use it in GitHub Desktop.
Save mike820324/e5b120afa0bce57d1d599e7beadabb58 to your computer and use it in GitHub Desktop.
query UserStreamOverview($userId: ID!, $pagingOptions: PagingOptions) {
user(username: $userId) {
name
profileStreamConnection(paging: $pagingOptions) {
...commonStreamConnection
__typename
}
__typename
}
}
fragment commonStreamConnection on StreamConnection {
pagingInfo {
next {
limit
page
source
to
ignoredIds
__typename
}
__typename
}
stream {
...StreamItemList_streamItem
__typename
}
__typename
}
fragment StreamItemList_streamItem on StreamItem {
...StreamItem_streamItem
__typename
}
fragment StreamItem_streamItem on StreamItem {
itemType {
__typename
... on StreamItemPostPreview {
post {
id
mediumUrl
title
firstPublishedAt
creator {
name
}
previewImage {
id
}
tags {
id
}
__typename
}
__typename
}
}
__typename
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment