mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-29 06:40:31 +00:00
17 lines
499 B
GraphQL
17 lines
499 B
GraphQL
query samplePokeAPIquery {
|
|
# Gets all the pokemon belonging to generation 3
|
|
gen3_species: pokemon_v2_pokemonspecies(where: {pokemon_v2_generation: {name: {_eq: "generation-iii"}}}, order_by: {id: asc}) {
|
|
name
|
|
id
|
|
}
|
|
# You can run multiple queries at the same time
|
|
# Counts how many pokemon where release for each generation
|
|
generations: pokemon_v2_generation {
|
|
name
|
|
pokemon_species: pokemon_v2_pokemonspecies_aggregate {
|
|
aggregate {
|
|
count
|
|
}
|
|
}
|
|
}
|
|
}
|