Skip to content

js-bao-wss-client


js-bao-wss-client / CelContextResult

Interface: CelContextResult<C> ​

Result of reading a database's CEL context dict. The same dict is exposed under both metadata (legacy wire name) and celContext (new user-facing name). C is an optional additive generic typing the caller's context shape; it defaults to today's untyped Record<string, any>. Shared by getCelContext and its deprecated getMetadata alias so the two can't drift.

Deprecated ​

Use resource metadata categories instead. A category has separate readRule/writeRule (read no longer implies update) and is read from CEL as md.self.<category>.<key>.

Type Parameters ​

C ​

C extends object = Record<string, unknown>

Properties ​

celContext ​

celContext: C | null


databaseId ​

databaseId: string


metadata ​

metadata: C | null

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30