What is wrong with the following component?
Solved! Go to the solution
Hope you're having a great day!
What error do you get when you execute your code. I can assure you that your mutation works well:
Retrieving created product:
The returned "data" object is "undefined". And no product is being created.
I am using it inside the example from https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react/fetch-data-with-apollo