Created
May 24, 2020 00:17
-
-
Save derekbrown/1320e75eb2109fb28318321067f8329e to your computer and use it in GitHub Desktop.
Sample GQL Document
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 fetchMessages($chatId: ID!) { | |
fetchMessages(chatId: $chatId) { | |
countAfter | |
countBefore | |
messages { | |
type | |
messageId | |
chatId | |
userId | |
user { | |
userId | |
username | |
profilePictureUrl | |
firstName | |
lastName | |
phone | |
token | |
birthday | |
location | |
points | |
url | |
} | |
content { | |
text | |
media { | |
url | |
type | |
} | |
mentions { | |
type | |
content | |
startIndex | |
endIndex | |
} | |
} | |
insertedAt | |
updatedAt | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment