Skip to content

MatchBindings

Defined in: libs/language/src/typeqlite-validator.ts:537

What a match binds, read from the AST alone.

An anonymous relation pattern binds no variable of its own and is deliberately absent from things — the interpreter invents __anonN for it, and that is a name nobody wrote and nothing should offer back.

Properties

Name Description
rolePlayersOnly Variables appearing only inside links (...), with no isa of their own.
selectable Attribute variables — those bound by a has … $var.
things Thing variables, with what their patterns name.

readonly rolePlayersOnly: ReadonlySet<string>

Defined in: libs/language/src/typeqlite-validator.ts:546

Variables appearing only inside links (...), with no isa of their own.


readonly selectable: ReadonlySet<string>

Defined in: libs/language/src/typeqlite-validator.ts:539

Attribute variables — those bound by a has … $var. A select may name these or things.


readonly things: ReadonlyMap<string, { bound: string[]; literals: string[]; type?: string; }>

Defined in: libs/language/src/typeqlite-validator.ts:541

Thing variables, with what their patterns name.

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.