Expressions — AQL
Expressions
Section titled “Expressions”- Operators — comparison / logical operators,
is null, and combining conditions. - Literals — string, number, boolean, and null literals.
- Path Expressions —
.fieldpaths and link traversal. - Casts & Types —
<Type>casts and computed-field type resolution.
Global references
Section titled “Global references”global <name> reads a declared global variable — the current
user, active tenant, etc. It’s an operand like a path or literal, so it works
anywhere an expression does (a filter, a computed field, an RLS
policy predicate):
multi select Doc { id, title } filter .owner = global current_user;It lowers to a read of the backing session setting,
current_setting('app.<name>', …). See Globals for declaration
and how the value is set from the client.