Skip to content

Expression = ComparisonNode | StartsWithNode | ExistsNode | TypeOfNode | NotNode | AndNode | OrNode

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

A query expression: an immutable tree built by the combinators below, whose toString() is the exact query string sent over the wire.

const q = and(gte("level", i32(10)), or(eq("status", str("open")), not(exists("closedAt"))))
String(q) // level >= i32(10) AND (status = str('open') OR NOT EXISTS(closedAt))