upsertWarehouseStock

Topics: Logistics

Create or wholesale-replace a warehouse stock record in the caller's tenant: creates one when input.id is omitted or unknown, otherwise overwrites the existing record. Emits a warehouse-stock updated event. Requires write access to warehouse stock.

Returns

WarehouseStockPayload!

Arguments

Full state of the stock record to write.

Exact field SDL
"""
Create or wholesale-replace a warehouse stock record in the caller's tenant: creates one when `input.id` is omitted or unknown, otherwise overwrites the existing record. Emits a warehouse-stock updated event. Requires write access to warehouse stock.
"""
upsertWarehouseStock(
  """Full state of the stock record to write."""
  input: UpsertWarehouseStockInput!
): WarehouseStockPayload! @topic(names: ["logistics"])

Declared on Mutation. Access is checked by the platform for each operation.