App reviews, troubleshooting, and recommendations
Having no previous experience with graphql, I'm a bit confused by this description given for the ProductVariantInput.imageSrc attribute in the docs:
The URL of an image to associate with the variant. This field can only be used through mutations that create product images and must match one of the URLs being created on the product.
I'd like to add the ability to upload an image for a new product variant from a variant creation form and this description seems to imply that I can add a new image to the product and associate it with the new variant at the same time but I'm unsure how to write such a query. Thanks in advance.
After doing some more research I realized that the imageSrc attribute can only be assigned when adding both new variants and new images to a product during a product creation or update operation.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025