Graphql product variant update mutation not updating inventory

sandip001
Shopify Partner
5 0 6

I'm trying to update inventoryQuantities through productVariantUpdate but when run query it return old quantity (not updating quantity)

 

Mutation

 

 

mutation {
  productVariantUpdate(input: {id: "gid://shopify/ProductVariant/30051182215540", inventoryQuantities: {availableQuantity: 5, locationId: "gid://shopify/Location/33543789412"}}) {
    productVariant {
      inventoryQuantity
    }
  }
}

 

Yu727
Excursionist
38 0 9

Hi @sandip001 

Hope you are doing well.

 

I am having the same issue as you got.

Were you able to solve this issue?

Thank you!

 

Rixwan
New Member
1 0 1

Hey @sandip001 ,

I am having the same issue can you let me know if you got it resolved ?

 

I am having the same problem. Hoping for a solution

mikias
New Member
1 0 0

I think you can only adjust the inventory value using this tutorial: https://shopify.dev/tutorials/manage-product-inventory-with-admin-api#adjust-inventory-levels-by-a-c...

0 Likes