Repository navigation
|
Suppose we have this structure with Person vertices and properties for their favorite drinks: Given that we have this data... ...it seems you can lists all occurring drinks and how many fans they each have respectively by doing: This is fine but I would like to limit the result to only list drink which have (num_of_fans > 1 and num_of_fans < 3) so only pepsi would be listed. It is like I want to add a second WHERE clause after the return. How can I achieve this? |
Answered by
joruxs
Aug 11, 2022
Replies: 1 comment
|
I believe I found a solution. In the open cypher documentation (https://s3.amazonaws.com/artifacts.opencypher.org/openCypher9.pdf) in the section about WITH there is an example called "Filter on aggregate function results": Adapting their example to my problem above we can do this: |
0 replies
Answer selected by
joruxs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe I found a solution.
In the open cypher documentation (https://s3.amazonaws.com/artifacts.opencypher.org/openCypher9.pdf) in the section about WITH there is an example called "Filter on aggregate function results":
Adapting their example to my problem above we can do this: