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

E653

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

Non-Object Inner Type

This error occurs when the inner type of an iterable variable is not an object type, preventing field access or object destructuring.

Erroneous Code Example

In this example, the numbers variable contains primitives, not objects, so field access is not allowed.

Query addUsers(names: [String]) =>
    FOR {name} In names {
        AddN<User>({name: name})
    }
    RETURN "Users added"

Solution

Ensure iterable contains object types for field access.

Query addUsers(names: [String]) =>
    FOR name IN names {
        AddN<User>({name: name})
    }
    RETURN "Users added"
Query addUsers(names: [{name: String}]) =>
    FOR {name} IN names {
        AddN<User>({name: name})
    }
    RETURN "Users added"