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

E209

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

Unknown Type for Parameter

Erroneous Code Example

This error occurs when you specify an unknown type for a query parameter that is not a primitive type or a type defined in your schema.

QUERY getItem(data: UnknownType) =>
    RETURN data
N::User {
    name: String,
}

Solution

Use a primitive type (String, I32, U32, F64, Bool, ID, etc.) or declare the type in your schema.

QUERY getUser(id: ID) =>
    user <- N<User>(id)
    RETURN user
N::User {
    name: String,
}