Graphql, variants and multiple images

Solved
Highlighted
Excursionist
40 1 6

Is it possible, using GraphQL, to add multiple image IDs to a variant.  I can't see any reference to that

 

The rest api talks of variant_ids, but I can't see any reference to that in GraphQL

 

Thanks

 

Grant

1 Like
Highlighted
Shopify Staff
Shopify Staff
582 70 127

This is an accepted solution.

Hey @GrantDB,

 

In Shopify each variant can only have 1 image attached. The parent product object can have a total of 250 images, but variants are limited to 1. I believe the REST doc you're referring to is this one, which is actually showing how to attach a single image to multiple variants at once.

 

 

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Excursionist
40 1 6

I was, I presume then, if you added the same variant id more than once, it would just overwrite the previous one (or fail)

 

Thanks for clarifying that only one is allow, no matter what method you use

 

Thanks

 

Grant

0 Likes
Highlighted
New Member
1 0 0

I understand only one picture for a variant is available, but we are hoping there is a code option or a way we could swap out an entire set of pictures with a change.  We offer bikes and the products have lots of detail, we would like the switch to change all of the pictures to the color chosen.  Are there really no options for this?  I ideally would like to have 5-8 pictures for each variant.

0 Likes