E202
For the complete documentation index optimized for AI agents, see llms.txt.
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}
N::User {
age: U32,
}
Solution
Define the field username in the schema for the User item type.
N::User {
username: String,
age: U32,
}