youreyecheek
youreyecheek

Reputation: 167

neo4j cypher collection of paths to collection of nodes

I have collection of paths P and want my query to return only a simple collection of nodes (a node per row) containing all the nodes from every path. Seems like a trivial task but after this error from the DB I gave up trying :D .

thanks

Output from web console

Upvotes: 0

Views: 1152

Answers (1)

youreyecheek
youreyecheek

Reputation: 167

oh, so it really was trivial after all...

... UNWIND nodes(p) as aaa RETURN DISTINCT aaa 

Upvotes: 1

Related Questions