App reviews, troubleshooting, and recommendations
Hello,
I'm creating an app where at some moment I need to add a product to the shop, I have used the graphql client, and passing these variables for the product creation.
It works fine and creates me a product when I do it like that
variables: {
input: {
title: `${data.title}`,
variants: [{ price: randomPrice() }],
},
},
but when I try to add an image to the product, it gives me an error.
These are the variables I'm trying to post...
variables: {
input: {
title: `${data.title}`,
"images": [
{
"width": 110,
"height": 140,
"src": data.imageUrl,
"variant_ids": [
{}
]
}
],
variants: [{ price: randomPrice() }],
},
},
I'm doing it the right way or should I do something else in order to give the product an image url?
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023