A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am new to GraphQL...I was able to do a customerUpdate mutation using the GraphQL playground, but when I try it in a node.js script (below) I get the following error: "Error updating customer: RequestError: Variable $input of type CustomerInput! was provided invalid value."
Solved! Go to the solution
This is an accepted solution.
Hey @epodietz
Looks like you're not passing the variables. You can pass them as a second argument to shopify.graphql like this:
const response = await shopify.graphql(query, variables);
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @epodietz
Looks like you're not passing the variables. You can pass them as a second argument to shopify.graphql like this:
const response = await shopify.graphql(query, variables);
Scott | Developer Advocate @ Shopify
Thanks, Scott. Pretty obvious, in retrospect. Now to glue back those hairs that I pulled out...