Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested List & Pattern Comprehensions #2472

Open
stakez opened this issue Jul 12, 2022 · 1 comment
Open

Nested List & Pattern Comprehensions #2472

stakez opened this issue Jul 12, 2022 · 1 comment

Comments

@stakez
Copy link

stakez commented Jul 12, 2022

In the absence of

  • Aggregation functions within nested maps
  • "All property" map projections

Using Cypher to retrieve data in JSON format is difficult. Using the "WITH" clause outside the map object can force a lack of context that results in compounded queries with huge overhead. It is also near impossible to replicate inline queries similar to "GroupCount" step in gremlin.

That only leaves us with list and pattern comprehensions. While they are helpful, they cannot be nested to return multidimensional array structures from query results. Is there any plan to support a pattern comprehension within a pattern comprehension anytime soon. A sample example (not the exact use case) is shown below.

[(n)-[:FRIEND_OF]->(f:Person) | [(f)-[:FRIEND_OF]->(b:Person) | b.age]]

Any reference from the nested query simply returns null.

Any solution or timeline on this will be appreciated.

@LiorKogan
Copy link
Member

LiorKogan commented Jul 14, 2022

I'm sorry but there no specific timeline we can share at this stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants