You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cypher: subquery where clause seems to be always returning false #3769
A slightly odd looking-query, but I've tried to boil the pattern down to the smallest possible example.
MERGE (t1:Thing1 {username: "bob"}) WITH coalesce(t1.aList, []) AS aList
CALL {
WITH aList WITH aList
WHERE NOT any(element IN aList WHERE element = "92dc13ff-50d1-4879-b2fd-b0dedf7ec019")
RETURN true AS success1
}
RETURN success1
The parts in isolation seem to work, but something is going wrong when in a CALL subroutine with the WHERE clause.
# returns true
MERGE (t1:Thing1 {username: "bob"}) WITH coalesce(t1.aList, []) AS aList
RETURN NOT any(element IN aList WHERE element = "92dc13ff-50d1-4879-b2fd-b0dedf7ec019")
#returns false
MERGE (t1:Thing1 {username: "bob"}) WITH coalesce(t1.aList, ["92dc13ff-50d1-4879-b2fd-b0dedf7ec019"]) AS aList
RETURN NOT any(element IN aList WHERE element = "92dc13ff-50d1-4879-b2fd-b0dedf7ec019")
# returns true
MERGE (t1:Thing1 {username: "bob"}) WITH coalesce(t1.aList, []) AS aList
CALL {
WITH aList WITH aList
RETURN true AS success1
}
RETURN success1
Activity
fix: Cypher -> WHERE clause inside CALL subquery always returns false
lvca commentedon Apr 2, 2026
Reproduced and fixed
Orkie commentedon Apr 2, 2026
Thanks, just checked and it's working fine
fix: Cypher -> WHERE clause inside CALL subquery always returns false
fix: Cypher -> WHERE clause inside CALL subquery always returns false
fix: Cypher -> WHERE clause inside CALL subquery always returns false
fix: Cypher -> WHERE clause inside CALL subquery always returns false
fix: Cypher -> WHERE clause inside CALL subquery always returns false
chore(deps): bump the go-modules group across 1 directory with 3 upda…