Created
July 28, 2017 09:10
-
-
Save tspecht/9292e0a2527ec3a5ccce082335998ac0 to your computer and use it in GitHub Desktop.
Example of offset-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!, $offset: Int, $limit: Int) { | |
pokemons(trainerID: $trainerID, offset: $offset, limit: $limit) { | |
id | |
name | |
species { | |
name | |
} | |
# ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment