pokeapi/graphql/examples/pokemon_stats.gql

24 lines
431 B
Text
Raw Normal View History

2021-04-10 19:02:28 +00:00
query tallest {
pokemon: pokemon_v2_pokemon(order_by: {height: desc}, limit: 3, where: {is_default: {_eq: true}}) {
name
height
}
}
query fattest {
pokemon: pokemon_v2_pokemon(order_by: {weight: desc}, limit: 3, where: {is_default: {_eq: true}}) {
name
weight
}
}
query avgHappiness {
species: pokemon_v2_pokemonspecies_aggregate {
aggregate {
avg {
base_happiness
}
}
}
}