cypher-query-builder icon indicating copy to clipboard operation
cypher-query-builder copied to clipboard

Support storing match pattern in a variable

Open jamesfer opened this issue 5 years ago • 0 comments

When using MATCH, the path pattern can be stored in a variable for use in FOREACH clauses or other functions.

Possible implementation could be:

query.match('path', [
  node('person'),
  relation('out', [ 'FriendsWith' ]),
  node('friend'),
])
// MATCH path = (person)-[:FriendsWith]->(friend)

jamesfer avatar Jul 16 '19 11:07 jamesfer