cancel
Showing results for 
Search instead for 
Did you mean: 

Path query with a single node

aldrinm
Node Link

Using the cypher-dsl, Is it possible to create a query like,

MATCH p = (n:Movie) RETURN p

Seems like Cypher.path("p").definedBy(..) only takes a RelationshipPattern and not a Node, so I can't do something like,
Cypher.path("p").definedBy(node("Movie"))

Wondering if there is way to achieve this
Thanks

1 ACCEPTED SOLUTION

gerrit_meier
Neo4j
Neo4j

I see no problem to provide this functionality in the future. Created a ticket Support path query with a single node · Issue #200 · neo4j-contrib/cypher-dsl · GitHub with the content of your question.

View solution in original post

1 REPLY 1

gerrit_meier
Neo4j
Neo4j

I see no problem to provide this functionality in the future. Created a ticket Support path query with a single node · Issue #200 · neo4j-contrib/cypher-dsl · GitHub with the content of your question.