Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

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

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

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))