Setu-TS
    Preparing search index...

    Interface CosmosBatchPatchOperation

    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.

    0.2.0

    interface CosmosBatchPatchOperation {
        id: string;
        operationType: "Patch";
        resourceBody: { operations: readonly CosmosPatchOperation[] };
    }
    Index
    id: string

    The document id.

    operationType: "Patch"

    The operation kind.

    resourceBody: { operations: readonly CosmosPatchOperation[] }

    The patch operations, in the envelope the SDK expects.