interface CosmosBatchPatchOperation
Since 0.2.0

A batch operation carrying patch operations rather than a whole document.

Two of these addressing the same item COMPOSE — measured against the emulator, [set /a, set /b] on one id answers [200, 200] and leaves both fields set — which is what lets a Unit of Work update one row twice without the second write discarding the first.

Properties

readonly
operationType: "Patch"

The operation kind.

readonly
id: string

The document id.

readonly
resourceBody: { readonly operations: readonly CosmosPatchOperation[]; }

The patch operations, in the envelope the SDK expects.

Usage

import { type CosmosBatchPatchOperation } from "database-plugin/src/index.ts";