pokeapi/graphql/examples/alola_road_encounters.gql

27 lines
583 B
Text
Raw Normal View History

2021-03-19 18:10:13 +00:00
"""
2021-03-21 20:31:22 +00:00
Finds Pokemons in Alola that evolve when you are in a particular location.
2021-03-19 18:10:13 +00:00
Variables:
{
2021-04-10 19:02:28 +00:00
"region": "alola"
2021-03-19 18:10:13 +00:00
}
"""
query location_evolutions_in_alola($region: String) {
region: pokemon_v2_region(where: {name: {_eq: $region}}) {
name
location: pokemon_v2_locations_aggregate(where: {pokemon_v2_pokemonevolutions: {id: {_is_null: false}}}) {
nodes {
name
evolutions: pokemon_v2_pokemonevolutions_aggregate {
nodes {
species: pokemon_v2_pokemonspecy {
name
}
}
}
}
}
}
}