StockBulkUpdate Object
Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use ‘variantId’ in one input and ‘variantExternalReference’ in another.
Triggers the following webhook events:
- PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock details were updated.
Applied directives
@webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_STOCK_UPDATED], syncEvents: [])
type StockBulkUpdate {
count: Int!
results: [StockBulkResult!]!
errors: [StockBulkUpdateError!]!
}
Fields
count
count · Int!
Returns how many objects were updated.
results
results · [StockBulkResult!]!
List of the updated stocks.
errors
errors · [StockBulkUpdateError!]!
Used by
Schema: Saleor 3.23.43. Download SDL.