Variable Previously Declared
Erroneous Code Example
This error occurs when you try to declare a variable that has already been declared in the current scope. In this example, the variableuser_name is declared twice.
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.
user_name is declared twice.
Query getUser(userId: ID) =>
userId <- N<User>(userId)::ID
RETURN userId
Query getUser(userId: ID) =>
user_id <- N<User>(userId)::ID
RETURN user_id
Was this page helpful?