mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 19:33:10 +00:00
18 lines
499 B
Text
18 lines
499 B
Text
|
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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|