pokeapi/graphql/examples/pokemon_stats.gql
2021-04-10 21:02:28 +02:00

23 lines
431 B
GraphQL

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
}
}
}
}