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