StockBulkUpdate
Updates stocks for a given variant and warehouse.
Added in Saleor 3.13This API is currently in Feature Preview and can be subject to changes at later point.
Triggers the following webhook events:
- PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock details were updated.
type StockBulkUpdate {
count: Int!
results: [StockBulkResult!]!
errors: [StockBulkUpdateError!]!
}
Fields
StockBulkUpdate.count
● Int!
non-null scalar
Returns how many objects were updated.
StockBulkUpdate.results
● [StockBulkResult!]!
non-null object
List of the updated stocks.
StockBulkUpdate.errors
● [StockBulkUpdateError!]!
non-null object
Returned by
stockBulkUpdate
mutation