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

E611

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

Missing To ID

Erroneous Code Example

This error occurs when you try to create an edge without specifying the target node ID.

In this example, the AddE step is used without specifying the To parameter.

Query addEdge(from: ID, to: ID) =>
    AddE<Follows>::From(from)

Solution

Provide both ‘from’ and ‘to’ node IDs when creating edges.

Query addEdge(from: ID, to: ID) =>
    AddE<Follows>::From(from)::To(to)