Skip to content

batchMutationErrorSchema

const batchMutationErrorSchema: ZodObject<{ message: ZodOptional<ZodString>; rejections: ZodOptional<ZodArray<ZodObject<{ mutationId: ZodUUID; mutationSeq: ZodNumber; reason: ZodString; tableName: ZodString; }, $strict>>>; }, $strip>

Defined in: packages/contracts/src/mutation.ts:131

The body of a non-2xx batch-mutation response. rejections is present only when the fault is attributable to specific mutations (payload validation); whole-batch faults (execution 5xx, auth, malformed envelope) carry just a message. Unknown extra fields are stripped.