Hi - I’m using the inventorySetOnHandQuantities mutation and want to check a couple of things:
-
If some of the InventorySetQuantityInput lines are valid and some aren’t, will those which are valid still be processed?
-
Any tips in handling the userErrors for those which aren’t?
e.g. for the following return, does the number 1 under field refer to the 2nd item being invalid?
Many thanks for your help
{
"data": {
"inventorySetOnHandQuantities": {
"userErrors": [
{
"code": "INVALID_INVENTORY_ITEM",
"field": [
"input",
"setQuantities",
"1",
"inventoryItemId"
],
"message": "The specified inventory item could not be found."
}
],
"inventoryAdjustmentGroup": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 11,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 990,
"restoreRate": 50.0
}
}
}
}