BUGS : productVariant -> translation

Nolan_V
Shopify Partner
6 0 3

Hi, I wanted to get the translated Name of a productvariant using the 2024-04 version of the GraphQL api, so I used this request:

{
       productVariants(first: 1, query: "updated_at:>'2023-10-31T13:30:24Z'") {
              nodes {
                        product {
                               translations(locale: "en") {
                                value
                                }
                         title
                        }
                        translations(locale: "en") {
                                  value
                        }
                       displayName
                      }
            }
}

And when a variant has more than one option, the first one is not returned, as shown in the images below.

Shopify product variant Response options.png

And I don't know why, but I have an HTML element returned to the value of the product title translation.

Shopify product variant Response product title.png

I don't know if it's a user problem or if it's coming from your side?

Replies 2 (2)

Nolan_V
Shopify Partner
6 0 3

I also wanted to know if there was any way to get all the translations of a product variant, or at least do something like this:

translations(locale: "en AND fr") {

Nolan_V
Shopify Partner
6 0 3

Can someone from Shopify confirm that this is a bug ?