I’m facing an issue, probably a bug on the Shopify end where if I send the following query to orderEditSetQuantity mutation, I get the old quantity in response which shouldn’t be the case.
mutation editLineItemQuantity($id: ID!, $line_item_id: ID!, $quantity: Int!) {
orderEditSetQuantity(
id: $id
lineItemId: $line_item_id
quantity: $quantity
) {
calculatedOrder {
id
lineItems(first: 100) {
edges {
node {
id
title
sku
quantity
editableQuantity
editableQuantityBeforeChanges
originalUnitPriceSet {
presentmentMoney {
amount
}
}
variant {
id
product {
id
}
}
}
}
}
addedLineItems(first: 100) {
edges {
node {
id
title
sku
quantity
editableQuantity
editableQuantityBeforeChanges
originalUnitPriceSet {
presentmentMoney {
amount
}
}
variant {
id
product {
id
}
}
}
}
}
subtotalPriceSet {
presentmentMoney {
amount
}
}
totalPriceSet {
presentmentMoney {
amount
}
}
taxLines {
priceSet {
presentmentMoney {
amount
}
}
}
}
userErrors {
field
message
}
}
}
But, if I remove the following three properties from the query, then the query works and I get the updated quantity.
subtotalPriceSet {
presentmentMoney {
amount
}
}
totalPriceSet {
presentmentMoney {
amount
}
}
taxLines {
priceSet {
presentmentMoney {
amount
}
}
}
Did anyone face a similar kind of issue? The API version used is 2021-10