Docs
chromia.com

Global functions

On this page

Rell provides a collection of built-in global functions for common tasks. For complete API documentation, see the Standard Library reference.

Overview

Global functions are available without any namespace prefix and cover:

Key functions

Using empty and exists in at-expressions

Both empty() and exists() support nested at-expressions, enabling efficient SQL queries:

Rell
// Find users with no company in their city
user @* {
    empty(company @* { .city == user.city })
}

// Find users with at least one company in their city
user @* {
    exists(company @* { .city == user.city })
}

Use @* in nested at-expressions to execute as a single SQL query. Other cardinality operators (@+, @?, @) result in separate queries.