Field Not in Schema

Erroneous Code Example

This error occurs when you reference a field that is not defined in your schema for a given item type. For example, the field username is not defined in the schema for the User item type.
QUERY getUser(id: ID) =>
    user <- N<User>(id)
    RETURN user::{username}

Solution

Define the field username in the schema for the User item type.
N::User {
    username: String,
    age: U32,
}