Pagination
Make sure to include pagination parameters in queries to avoid network time out errors
Last updated
Was this helpful?
Was this helpful?
"data": {
"procedures": {
"edges": [
{
"node": {
"id": 20
}
},
{
"node": {
"id": 22
}
},
{
"node": {
"id": 24
}
},
{
"node": {
"id": 26
}
},
{
"node": {
"id": 28
}
}
],
"pageInfo": {
"endCursor": "YXJyYXljb25uZWN0aW9uOjE5",
"hasNextPage": true,
"totalCount": 1259,
"count": 5
}
}
}
}{
parts(first: 5, after: "YXJyYXljb25uZWN0aW9uOjE5") {
edges {
node {
id
}
}
pageInfo {
endCursor #use this to grab the next set of parts
hasNextPage #are their more parts after the ones returned in this query?
totalCount #total number of parts
count #number of parts returned by this query
}
}
}