Skip to content

exists<N>(name): ExistsNode<{ name: N; type: never; }>

Defined in: src/query/expression.ts:444

The attribute is set, with any type.

N extends string

N

ExistsNode<{ name: N; type: never; }>

If the name is outside the attribute name grammar.

If given a system attribute — every entity has all of them, so the test would be a constant — or a $ name that is not one.

exists("reviewedBy") // EXISTS(reviewedBy)