Created
July 28, 2017 09:15
-
-
Save tspecht/bd24be0a7eb4a3f898fafed733bfd072 to your computer and use it in GitHub Desktop.
Example of cursor-based pagination in GraphQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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