method ICosmosItem.read
ICosmosItem.read(): Promise<CosmosItemResponse<Record<string, unknown>>>

Reads the document.

Return Type

Promise<CosmosItemResponse<Record<string, unknown>>>

The envelope; resource is undefined when the document does not exist under this partition key (a 404 does NOT throw)

Usage

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