Skip to main content Module expr Copy item path Source AndExpr Column ColumnMeta ColumnSet Select-all (*) column list. Generated by #[derive(SurrealRecord)]. ContainsExpr EqExpr Func A SurrealQL function call name(args…). Grouped Wraps an expression in parentheses: (<expr>). Use to force grouping/precedence. GtExpr GteExpr Ident An untyped identifier (column or field path) for building filter expressions
where a typed Column accessor is unavailable (e.g. record-link fields the
derive doesn’t expose, or tenant.slug paths). Mirrors Column’s operators. Literal LtExpr LteExpr NeExpr NoneLit SurrealDB’s NONE. NotExpr OrExpr Projection A single SELECT-list entry. Either a bare expression or <expr> AS <alias>. Raw A verbatim SurrealQL fragment. Use for expressions somnia does not model as
typed nodes (e.g. IF x != NONE THEN … END, lambdas, tenant.slug). RecordLink Builds a SurrealDB record link type::record('table', <key>). The key is any
literal value (typically the bare UUID/string id of the related row). Order DynExpr Expr SurrealQL col A bare column name as a projection: name. field <raw> AS <alias> — verbatim expression with an alias.ident Construct an Ident for a field name. DynExprBox A boxed, type-erased expression. Useful for returning a composed filter from
a helper function (e.g. a shared tenant/owner predicate).