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

E206

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

Invalid Value Type

Erroneous Code Example

This error occurs when you provide a value that is not a valid literal or identifier.

QUERY createUser() =>
    user <- N<User>::INSERT { name: }
    RETURN user
N::User {
    name: String,
}

Solution

Use a literal value or a valid identifier.

QUERY createUser(userName: String) =>
    user <- N<User>::INSERT { name: userName }
    RETURN user
N::User {
    name: String,
}