diff --git a/graphql/examples/searchForPokemonInGerman.gql b/graphql/examples/searchForPokemonInGerman.gql new file mode 100644 index 00000000..74c6ec8a --- /dev/null +++ b/graphql/examples/searchForPokemonInGerman.gql @@ -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 + } +}