A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi!
Could anyone drop me an example of a working mutation for updating product quantities please.
I was looking at the "productVariantUpdate" mutation and i can work out how to form the query for price update but i got stuck with the quantities update.
Thanks!
Do you mean inventory quantities?
Hey folks - just hopping in here - @garyrgilbert is on point. This mutation is likely what you're looking for, but there are some things to keep in mind when it comes inventory management, most importantly that additional scopes on top of the product access scopes are needed to adjust inventory. We have a good overview on how the process works here, but if you have any questions, feel free to reach out here and we can help troubleshoot!
Al |Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog