You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Query object to create a query with multiple match statements, the statements are merged into a single match. The resulting cypher produces different results than it would have, had all the matches been preserved.
Given that there are situations where multiple matches are explicitly desired, and given that there is already a notation for writing a multi-pattern match:
q.match('pattern a', 'pattern b')
I think it is most intuitive to have multiple matches retained when the query is converted to cypher.
Additional information which could be helpful if relevent to your issue:
Code example (inline, gist, or repo)
For example, take a graph of a Repo named Test and a chain of dependencies named D1, D2 and D3:
When using the Query object to create a query with multiple match statements, the statements are merged into a single match. The resulting cypher produces different results than it would have, had all the matches been preserved.
Given that there are situations where multiple matches are explicitly desired, and given that there is already a notation for writing a multi-pattern match:
I think it is most intuitive to have multiple matches retained when the query is converted to cypher.
Additional information which could be helpful if relevent to your issue:
Code example (inline, gist, or repo)
For example, take a graph of a Repo named
Test
and a chain of dependencies namedD1
,D2
andD3
:The query:
generates the cypher:
which returns only the dependencies D1 and D2.
Forcing multiple matches with a break:
generates the cypher:
which returns all dependencies D1, D2 and D3.
Runtime information:
Neo4j database version: 3.5.0
neo4j
gem version: N/Aneo4j-core
gem version: 9.0.0The text was updated successfully, but these errors were encountered: