exists
exists<
N>(name):ExistsNode<{name:N;type:never; }>
Defined in: src/query/expression.ts:444
The attribute is set, with any type.
Type Parameters
Section titled “Type Parameters”N extends string
Parameters
Section titled “Parameters”N
Returns
Section titled “Returns”ExistsNode<{ name: N; type: never; }>
Throws
Section titled “Throws”If the name is outside the attribute name grammar.
Throws
Section titled “Throws”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.
Example
Section titled “Example”exists("reviewedBy") // EXISTS(reviewedBy)