Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Update product quantity using graphQL (or as a GraphiQL example)

Update product quantity using graphQL (or as a GraphiQL example)

thearchitect
Excursionist
40 3 15

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!

Replies 2 (2)

garyrgilbert
Shopify Partner
431 41 185

Do you mean inventory quantities?

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
ShopifyDevSup
Shopify Staff
1453 238 522

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