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

E612

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

Missing From ID

Erroneous Code Example

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

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

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

Solution

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

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