Variable Not in Scope
Erroneous Code Example
This error occurs when you try to reference a variable that is not currently in scope or has not been declared. In this example, the variableuserId is not declared.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 CLI v2 is now live! See Getting Started for details.
userId is not declared.
Query getUser() =>
user <- N<User>(userId)
RETURN user
Query getUser(userId: ID) =>
user <- N<User>(userId)
RETURN user
Was this page helpful?