When fetching the translations field of a product node, like:
product(id: "gid://shopify/Product/111") {
translations(locale: "fr-CA") {
key
value
}
}
…the response contains ALL the keys, including title, body_html etc. The problem is some merchants have products with a very long body_html, which can consume a large portion of server memory, and delay the response.
We often only need one or two keys, and usually not the description, but the current API doesn’t allow selecting which keys to load. I think this would be a fairly direct addition, like translations(keys:["key_a", "key_b"]) and great for performance across the board.
Please consider this in a future API version. Thank you.