Skip to content

Instantly share code, notes, and snippets.

@mattmazzola
Created October 10, 2016 01:47
Show Gist options
  • Save mattmazzola/4d3f123a418f2ffc8241c06fc24f7d01 to your computer and use it in GitHub Desktop.
Save mattmazzola/4d3f123a418f2ffc8241c06fc24f7d01 to your computer and use it in GitHub Desktop.
GraphQL Pagination Sample Result
{
"data": {
"units": {
"totalCount": 140,
"edges": [
{
"node": {
"id": 288,
"meta": {
"name": "Banshee"
}
},
"cursor": "Mjg4"
},
{
"node": {
"id": 446,
"meta": {
"name": "Battlecruiser"
}
},
"cursor": "NDQ2"
}
],
"pageInfo": {
"startCursor": "Mjg4",
"endCursor": "NDQ2",
"hasNextPage": "true"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment