Skip to main content

Pagination

List queries follow the Relay connection pattern: they accept cursor arguments and return a *Connection type with edges, node and pageInfo fields.

query {
subscriptions(first: 25) {
edges {
node {
id
}
}
pageInfo {
hasNextPage
endCursor
}
}
}

To fetch the next page, pass the previous response's pageInfo.endCursor as after:

query ($after: String) {
subscriptions(first: 25, after: $after) {
edges {
node {
id
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
  • first is capped per query — see the argument documentation on each connection field in the API Reference.
  • Some resources also expose search* queries and *Pagination query variants; their arguments and semantics are documented on their individual reference pages.