pokeapi/graphql/examples/gen3_species.gql

18 lines
499 B
Text
Raw Normal View History

2021-03-19 18:10:13 +00:00
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
}
}
}
}