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

E602

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

Invalid Step

Erroneous Code Example

This error occurs when you try to use a step that is not valid in the current context.

In this example, the OutE<Knows> step results in edges, but the Out step can only be used on nodes.

Query getUser() =>
    user <- N<User>::OutE<Knows>::Out<Knows>
    RETURN user

Solution

Use valid step types in your traversals.

Query getUser() =>
    user <- N<User>::Out<Knows>::Out<Knows>
    RETURN user