Entity / Expressions

Reference

FunctionPurposeNull / edge behavior
Expr.eq(a, b)Equality comparisonUnknown if either side is null
Expr.isNull, Expr.isNotNullCheck for nullAlways returns true or false
Expr.lt, lte, gt, gteOrdering comparisonUnknown if null; text needs collation
Expr.contains(text, search)ASCII case-insensitive substringUnknown if null; escapes % and _
Expr.in(a, list)Membership in literal listUnknown if a null; empty list false
Expr.and, Expr.or, Expr.notThree-valued boolean logicnot(unknown) is unknown
Expr.implies(a, b)Conditional rule (!a || b)True where a is false
Expr.add, Expr.subNumeric addition/subtractionNull if either operand is null
Expr.whenGiven(input, fn)Optional filter when input presentSkipped when input is null
Expr.input(key, schema)Typed runtime parameterValidated by schema
Expr.viewer, Expr.nowContext caller ID and clockVisitor viewer is null
relation as operandLinked Entity IDNull on empty optional link
Expr.path(relation, end)Traverse one link to field/existsNull on null/hidden link
Expr.exists(rel, where?)Child row existence checkAlways true or false in SQL
Expr.is(Entity, tag, fn?)Match variant Entity caseFalse on other cases
Order.asc, desc, chosenSort terms over own fieldsNulls last asc, first desc
Query.dependencies(body)Fields, inputs, ops, reachesTracks filter vs. sort fields
Query.placement(body, input)Client list-placement checkReturns NotPlaceable with reason
Query.unsupported(body, ops)Check interpreter supportLists missing operations
evaluate(body, input, rows)In-memory reference evaluatorMissing key treated as null
Judge.query(body, input, row)Partial-cache evaluatorMissing key returns Unknown

Next