method CosmosAdapter.prototype.disconnect
CosmosAdapter.prototype.disconnect(): Promise<void>

Releases the client and the per-container caches.

The SDK client holds no socket the adapter must close — it is a fetch-based handle — so this drops the references rather than closing something, and an injected client stays usable by the application that supplied it.

Return Type

Promise<void>

Usage

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