Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.helix-db.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index optimized for AI agents, see llms.txt.

Expression is Not a Boolean

Erroneous Code Example

This error occurs when an expression is expected to result in a boolean value but produces a different type.
QUERY getUsers() =>
    users <- N<User>::WHERE(|u| u.name)
    RETURN users

Solution

Ensure the expression evaluates to a boolean value.
QUERY getUsers() =>
    users <- N<User>::WHERE(|u| u.active == true)
    RETURN users