interface CosmosItemResponse
Since 0.2.0

The response envelope every single-item operation answers with.

resource is undefined for a 404 point read — measured, and the reason the read path branches on the field rather than catching.

Type Parameters

The resource shape

Properties

readonly
statusCode: number

The HTTP status code.

readonly
optional
resource: T

The resource, or undefined when none was returned.

Usage

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