interface CosmosBatchInsertOperation
Since 0.2.0

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

Properties

readonly
operationType: "Create" | "Upsert"

The operation kind.

readonly
resourceBody: Record<string, unknown>

The document to write.

readonly
optional
id: string

The document id, when the caller chose one.

Usage

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