Invalid Boolean Comparison
Erroneous Code Example
This error occurs when you try to apply a boolean comparison operation to a type that doesn’t support it. In this example, the&& operator is used on a non-boolean type.
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.
&& operator is used on a non-boolean type.
Query getUser(user1: ID, user2: ID) =>
user1 <- N<User>(user1)
user2 <- N<User>(user2)
is_eq <- user1::EQ(user2)
RETURN is_eq
Query getUser(user1: ID, user2: ID) =>
user1_name <- N<User>(user1)::{name}
user2_name <- N<User>(user2)::{name}
is_eq <- user1_name::EQ(user2_name)
RETURN is_eq
Was this page helpful?