Path query with a single node

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

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.

1 Like