I have a query:
query {
productByHandle(handle: "${productHandle}") {
variants(first: 3) {
edges {
node {
title
id
priceV2 {
amount
}
image {
transformedSrc(maxWidth: 400)
}
}
}
}
}
}
Which works great. However, I'm struggling to find the syntax to get multiple transformedSrcs from the variant image. I want to use this for an image srcset, so I'll need to have multiple sizes returned.
I'm new to GraphQL in general. I tried an array on the image, using an AND with multiple maxWidth and scale, duplicating the image piece, etc. I've also searched the Shopify API docs many times.
Is this just not possible for some reason, or am I missing something?