orderEditSetQuantity with restock did not actually get restocked

Mathuraju
Shopify Partner
13 0 2

IHi,

The following GraphQL orderEditSetQuantity did not get executed when restock = true.

 

{"query":"mutation decreaseLineItemQuantityDemo($id: ID!, $lineItemId: ID!, $quantity: Int!, $restock: Boolean) {orderEditSetQuantity(id: $id, lineItemId: $lineItemId, quantity: $quantity, restock : $restock) {calculatedOrder { id } calculatedLineItem { id quantity} userErrors { field message}} }","variables": {"id":"gid://shopify/CalculatedOrder/78550728958","lineItemId":"gid://shopify/CalculatedLineItem/13726889148670","quantity":0,"restock":True} }

 

Any problem with the above GraphQL?

Replies 0 (0)