mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-13 23:37:06 +00:00
27 lines
543 B
Text
27 lines
543 B
Text
|
# for each language, list all items and the relative English translation
|
||
|
query getItemsTranslation1 {
|
||
|
pokemon_v2_language {
|
||
|
name
|
||
|
iso639
|
||
|
iso3166
|
||
|
items: pokemon_v2_itemnames {
|
||
|
name
|
||
|
englishName: pokemon_v2_item {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
# for each item, show the English name and get all it's translations
|
||
|
query getItemsTranslation2 {
|
||
|
items: pokemon_v2_item {
|
||
|
name
|
||
|
translations: pokemon_v2_itemnames {
|
||
|
foreignName: name
|
||
|
language: pokemon_v2_language {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|