Guide to pagination in the IXO Blocksync GraphQL API
first
query { entities(first: 50) { edges { node { id name } } } }
last
query { entities(last: 10) { edges { node { id name } } } }
after
query { entities(first: 20, after: "YXJyYXljb25uZWN0aW9uOjEw") { edges { node { id name } } } }
before
query { entities(last: 10, before: "YXJyYXljb25uZWN0aW9uOjIw") { edges { node { id name } } } }
{ "data": { "entities": { "edges": [ { "node": { "id": "did:ixo:entity:001", "name": "Entity One" } } ], "pageInfo": { "endCursor": "YXJyYXljb25uZWN0aW9uOjIw", "hasNextPage": true } } } }
hasNextPage
400 Bad Request
429 Too Many Requests
Was this page helpful?