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; |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
xs2tarunkukreja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions