interface CosmosPatchOperation
Since 0.2.0

One JSON-patch-shaped operation. The adapter only emits set, and only for top-level fields, so the "cannot create a path whose parent is absent" limitation measured on the SDK is unreachable through it.

Properties

readonly
op: "set"

The operation kind.

readonly
path: string

The document path, always a single leading-slash segment.

readonly
value: unknown

The value to set.

Usage

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