Skip to content

Commit

Permalink
Update cypher syntax in customqueries.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Walter authored and AdrianVollmer committed Nov 15, 2023
1 parent 0450ca6 commit fd8f175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions customqueries.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"queryList": [
{
"final": true,
"query":"MATCH p=((a:User)-[r:SamePassword*1..2]-(b:User)) WHERE STARTNODE(r).objectid > ENDNODE(r).objectid AND a<>b return p",
"query":"MATCH p=((a:User)-[r:SamePassword*1..2]-(b:User)) WHERE ALL(x in r WHERE STARTNODE(x).objectid > ENDNODE(x).objectid) AND a<>b RETURN p",
"allowCollapse": true
}
]
Expand All @@ -23,7 +23,7 @@
},
{
"final": true,
"query":"MATCH p=((a:User {name: $result})-[r:SamePassword*1..2]-(b:User)) WHERE STARTNODE(r).objectid > ENDNODE(r).objectid AND a<>b return p",
"query":"MATCH p=((a:User {name: $result})-[r:SamePassword*1..2]-(b:User)) WHERE ALL(x in r WHERE STARTNODE(x).objectid > ENDNODE(x).objectid) AND a<>b RETURN p",
"allowCollapse": true
}
]
Expand Down

0 comments on commit fd8f175

Please sign in to comment.