Skip to content

Instantly share code, notes, and snippets.

@tspecht
Created July 28, 2017 09:15
Show Gist options
  • Save tspecht/bd24be0a7eb4a3f898fafed733bfd072 to your computer and use it in GitHub Desktop.
Save tspecht/bd24be0a7eb4a3f898fafed733bfd072 to your computer and use it in GitHub Desktop.
Example of cursor-based pagination in GraphQL
query Pokemons($trainerID: Int!, $cursor: String) {
pokemons(trainerID: $trainerID, cursor: $cursor) {
id
name
species {
name
}
# ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment