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

projecting entities from scope using UNWIND requires WITH #2414

Closed
DvirDukhan opened this issue Jun 16, 2022 · 1 comment
Closed

projecting entities from scope using UNWIND requires WITH #2414

DvirDukhan opened this issue Jun 16, 2022 · 1 comment
Labels

Comments

@DvirDukhan
Copy link
Collaborator

query:

127.0.0.1:6379> graph.query g "MATCH (n)-[r]->(m) UNWIND [n, r, m] AS x SET x:L"
(error) _AR_EXP_UpdateEntityIdx: Unable to locate a value with alias r within the record

fixed query:

127.0.0.1:6379> graph.query g "MATCH (n)-[r]->(m) WITH n, r, m UNWIND [n, r, m] AS x SET x:L"
(error) Type mismatch: expected Node but was Relationship
@DvirDukhan DvirDukhan added the bug label Jun 16, 2022
@nafraf
Copy link
Contributor

nafraf commented Oct 31, 2022

I think this was fixed yet.

127.0.0.1:6379> graph.query g "MATCH (n)-[r]->(m) UNWIND [n, r, m] AS x SET x:L"
1) 1) "Cached execution: 0"
   2) "Query internal execution time: 1.188530 milliseconds"
127.0.0.1:6379> graph.query g "MATCH (n)-[r]->(m) WITH n, r, m UNWIND [n, r, m] AS x SET x:L"
1) 1) "Cached execution: 0"
   2) "Query internal execution time: 0.629208 milliseconds"

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

No branches or pull requests

3 participants