pokeapi/graphql/examples/item_translations.gql

27 lines
542 B
Text
Raw Permalink Normal View History

2021-04-10 19:02:28 +00:00
# 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
}
}
}
}
2021-04-11 17:33:42 +00:00
# for each item, show the English name and get all its translations
2021-04-10 19:02:28 +00:00
query getItemsTranslation2 {
items: pokemon_v2_item {
name
translations: pokemon_v2_itemnames {
foreignName: name
language: pokemon_v2_language {
name
}
}
}
}