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

E643

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

Field Previously Excluded

Erroneous Code Example

This error occurs when you try to access or include a field that has been previously excluded in the traversal.

In this example, the email field is excluded in the traversal, but is being accessed.

Query getUser(userId: ID) =>
    user <- N<User>(userId)::!{email}
    RETURN user::{email}

Solution

Remove the exclusion or access the field after the exclusion.

Query getUser(userId: ID) =>
    user <- N<User>(userId)
    RETURN user::{email}