method CosmosAdapter.prototype.rawQuery
CosmosAdapter.prototype.rawQuery<T>(
_sql: string,
_params?: unknown[]
): Promise<T[]>

Refuses the raw query by name.

Cosmos has a SQL dialect, but every query is scoped to ONE container and this signature has nowhere to name it — guessing one would be the silent divergence M70j closed elsewhere. An application reaches the injected client directly for a container-scoped query.

It rejects, never throws synchronously.

Type Parameters

Parameters

_sql: string
optional
_params: unknown[]

Return Type

Promise<T[]>

Usage

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