pokeapi icon indicating copy to clipboard operation
pokeapi copied to clipboard

GraphQL form/variety trigger

Open martipello opened this issue 3 years ago • 1 comments

I'm trying to get the 'why' for 'why' a Pokemon changed its variety or form such as with mega evolution I want to know which stone was used. Is this already possible?

Here's my current query

query MyQuery { pokemon_v2_pokemon(where: {id: {_eq: 6}}) { id pokemon_v2_pokemonspecy { pokemon_v2_pokemons { pokemon_v2_pokemonforms { pokemon_v2_versiongroup { name } pokemon_v2_pokemonformnames(where: {language_id: {_eq: 9}}) { pokemon_v2_pokemonform { pokemon_v2_pokemonformgenerations { pokemon_v2_generation { name } } pokemon_v2_pokemon { pokemon_v2_pokemontypes { pokemon_v2_type { name id } } pokemon_v2_pokemonsprites(limit: 1, order_by: {}) { sprites } weight height base_experience id is_default } form_name form_order id is_battle_only is_default is_mega order pokemon_id pokemon_v2_pokemonformnames(where: {language_id: {_eq: 9}}) { pokemon_name name } } } } } } } }

martipello avatar Dec 04 '22 13:12 martipello

i basically want the mega stone item to be somehow related to a pokemons mega form

martipello avatar Dec 09 '22 21:12 martipello