Setu-TS
    Preparing search index...

    Interface CosmosBatchInsertOperation

    A batch operation inserting a whole document. The id is optional: the service mints one when the body carries none.

    0.2.0

    interface CosmosBatchInsertOperation {
        id?: string;
        operationType: "Create" | "Upsert";
        resourceBody: Record<string, unknown>;
    }
    Index
    id?: string

    The document id, when the caller chose one.

    operationType: "Create" | "Upsert"

    The operation kind.

    resourceBody: Record<string, unknown>

    The document to write.