neo4j / cypher-builder

A library for building Cypher queries for Neo4j programmatically.
https://neo4j.github.io/cypher-builder/
Apache License 2.0
51 stars 14 forks source link

AssignPath should be in pattern not in relevant clauses #439

Closed angrykoala closed 2 weeks ago

angrykoala commented 3 weeks ago

Before

const query = new Cypher.Match(pattern).assignToPath(path).return(path);

After

const query = new Cypher.Match(pattern.assignToPath(path)).return(path);

This would add support for path assign in pattern comprehensions