Repository navigation
Query is failing "MATCH (i)-[e]->(o) where id(i) == 'ABC' or id(o) == 'ABC' return e;" #5582
Answered
by
wey-gu
xs2tarunkukreja
asked this question in
Q&A
Replies: 1 comment 6 replies
MATCH (i)-[e]-() WHERE id(i) == 'ABC' RETURN e; |
6 replies
Answer selected by
xs2tarunkukreja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to find all relationship with an vertex (either in or out).
When I run "MATCH (i)-[e]->(o) where id(i) == 'ABC' return e;" or "MATCH (i)-[e]->(o) where id(o) == 'ABC' return e;" - Both work fine.
But when I run "MATCH (i)-[e]->(o) where id(i) == 'ABC' or id(o) == 'ABC' return e;" - It throw an error "Scan vertices or edges need to specify a limit number, or limit number can not push down.".
Is there any way to find all the relationship in one query.
All reactions