Closed xmdcode closed 3 years ago
Found the solution :
const variables = { "id": "${mutationId}", "tags": [ "placeholder" ] }
;
Because is an object can't wrap the whole object with
and need to pass the argument directly as a variable inside "id" like the following :
const variables = { "id": mutationId, "tags": [ "placeholder" ] };
Sorry for opening the issue but i was banging my head for the past 2 hours why this is not working.
Hello ,
I have the following code :
When i do the query i do the first graphql query i get the gid which is in the form of : gid://shopify/Product/1234567891023
(so the shopify auth works)
but when i try the mutation (for updating with tag) i get as response HTTPError: Response code 400 (Bad Request)
.
From inside the Shopify GraphiQL App same Graphql mutation works succesfully with same permissions (only on products).
I have permissions given only on products for writing.
What could be the issue?