i’m using inventorySetQuantities to update my inventory quantity. I saw name field (only accepts ‘available’ or ‘on_hand’) on input but when i pass one of them, they updated both
mutation UpdateProductQuantity {
inventorySetQuantities(
input: {
name: "${name}",
reason: "correction"
quantities: [
{
inventoryItemId: "${inventoryId}"
locationId: "${locationId}",
quantity: ${quantity}
}
],
ignoreCompareQuantity: true
}
) {
inventoryAdjustmentGroup {
id
reason
changes {
name
delta
quantityAfterChange
}
}
userErrors {
field
message
}
}
}
this is the changes on above response
And im using inventoryActive in case this is not stocked. Should i use this for above case.