Skip to content

RunResult

RunResult = { diagnostics: Diagnostics; documents?: readonly JsonValue[]; kind: "rows"; rows: readonly Row[]; } | { diagnostics: Diagnostics; documents?: readonly JsonValue[]; kind: "ok"; rows: readonly Row[]; statement: "define" | "write"; } | { diagnostics: Diagnostics; kind: "refused"; message: string; reason: RefusalReason; }

Defined in: libs/session/src/session.ts:36

What a statement answered. Returned, never thrown: a session that dies on a typo is unusable.

rows and documents are what a read or a write pipeline answers (documents when it ends in fetch).

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.