upsertWarehouseTransfer

Topics: Logistics

Create a warehouse transfer, or wholly replace an existing one when input.id is supplied. Returns validation errors instead of saving when source and destination match or quantity is not positive. Requires warehouseTransfer:write permission.

Returns

WarehouseTransferPayload!

Arguments

Full transfer to write, optionally carrying the id of the transfer to replace.

Exact field SDL
"""
Create a warehouse transfer, or wholly replace an existing one when input.id is supplied. Returns validation errors instead of saving when source and destination match or quantity is not positive. Requires warehouseTransfer:write permission.
"""
upsertWarehouseTransfer(
  """
  Full transfer to write, optionally carrying the id of the transfer to replace.
  """
  input: UpsertWarehouseTransferInput!
): WarehouseTransferPayload! @topic(names: ["logistics"])

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