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

MATCH after UNWIND not supported #524

Closed
ikwattro opened this issue Dec 18, 2022 · 2 comments · Fixed by #531
Closed

MATCH after UNWIND not supported #524

ikwattro opened this issue Dec 18, 2022 · 2 comments · Fixed by #531

Comments

@ikwattro
Copy link
Contributor

Version 2022.8.1

It seems that only returning or updating clauses are possible after an UNWIND, trying to migrate some of internal queries to cypher-dsl usage, starting with this very simple one :

UNWIND $ids AS id
MATCH (n:`Person`)
WHERE id(n) = id
RETURN n
@ikwattro
Copy link
Contributor Author

ikwattro commented Dec 18, 2022

It seems it can be fixed by introducing an unnecessary WITH clause between the UNWIND and the MATCH, happy this issue being closed if it's by design.

@michael-simons
Copy link
Collaborator

That has been an oversight on my site. Thanks for spotting and reporting it!

For reference: https://s3.amazonaws.com/artifacts.opencypher.org/M21/railroad/SinglePartQuery.html

and for the writing ops I even implemented it that way.

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

Successfully merging a pull request may close this issue.

2 participants