mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
docs: add query
This commit is contained in:
parent
3a103fc658
commit
a77600ab8d
1 changed files with 20 additions and 0 deletions
20
graphql/examples/searchForPokemonInGerman.gql
Normal file
20
graphql/examples/searchForPokemonInGerman.gql
Normal file
|
@ -0,0 +1,20 @@
|
|||
# This query searches for pokemon having a german name like "Ento.*"
|
||||
# Should return Psyduck and Golduck
|
||||
|
||||
query searchForPokemonInGerman {
|
||||
pokemon_v2_pokemonspecies(
|
||||
where: {
|
||||
pokemon_v2_pokemonspeciesnames: {
|
||||
pokemon_v2_language: { name: { _eq: "de" } }
|
||||
name: { _regex: "Ento.*" }
|
||||
}
|
||||
}
|
||||
) {
|
||||
pokemon_v2_pokemonspeciesnames(
|
||||
where: { pokemon_v2_language: { name: { _eq: "de" } } }
|
||||
) {
|
||||
name
|
||||
}
|
||||
id
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue