Skip to main content

CreateBatchInput

Input for createBatch. Registers a new batch row for the given product; the (productId, number) pair must be unique.

input CreateBatchInput {
productId: ID!
number: String!
bestBeforeDate: DateTime
productionDate: DateTime
comment: String
}

Fields

CreateBatchInput.productId ● ID! non-null scalar

ID of the product the batch belongs to.

CreateBatchInput.number ● String! non-null scalar

Batch identifier (lot number, serial group, …). Unique per product.

CreateBatchInput.bestBeforeDate ● DateTime scalar

Best-before date for the batch.

CreateBatchInput.productionDate ● DateTime scalar

Date the batch was produced.

CreateBatchInput.comment ● String scalar

Free-form note attached to the batch.

Member Of

createBatch mutation