Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

E631

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

Incomplete Range

Erroneous Code Example

This error occurs when you define a range without both start and end values.

In this example, the range is incomplete because it is missing the end value.

Query getUser() =>
    subset_of_users <- N<User>::RANGE(0)
    RETURN subset_of_users

Solution

Provide both start and end values for ranges.

Query getUser() =>
    subset_of_users <- N<User>::RANGE(0, 100)
    RETURN subset_of_users