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
    }
  }
}

 

Replies 4 (4)
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 ?

 

Andrew-Werling
Tourist
10 1 2

I am having the same problem. Hoping for a solution