Skip to main content

EntityQuery

A parsed entity query. Frozen -- treat instances as values.

Index

Properties

readonly__entityQuery

__entityQuery: true

Type-only brand; no such property exists at runtime. It keeps a hand-built literal from passing as a query the grammar has validated, so one comes only from parseQuery or tryParseQuery and the functions over a query can trust what they are given. A string-literal key rather than a unique symbol, as on EntityReference, so the declarations from two physical copies of this module still agree structurally.

readonlydomain

domain: string

The owning service. Always literal, always required.

readonlyelements

elements: readonly EntityQueryElement[]

The pattern's elements, ancestor-first. Empty only for domain~..., which names the whole domain.

optionalreadonlytrailingGap

trailingGap?: EntityQueryGap

The gap after the last element, if the pattern ends in one.