E304
For the complete documentation index optimized for AI agents, see llms.txt.
Missing Item Type
Erroneous Code Example
This error occurs when an item type is required but not provided in your query.
In this example, the User item type is required but not provided.
Query getUser(userId: ID) =>
user <- N(userId)
RETURN user
Query getUser(userId: ID) =>
user <- N<User>(userId)::Out
RETURN user
Solution
Specify the required item type within the < and > brackets after the traversal step in your query.
Query getUser(userId: ID) =>
user <- N<User>(userId)
RETURN user
Query getUser(userId: ID) =>
user <- N<User>(userId)::Out<Knows>
RETURN user