Reputation: 209
Assuming a query like:
MATCH path=(u:user)-[:CREATED]->(p:post)<-[:REBLOG_OF*]-(p2:post) RETURN path
How can I get the IDs of all nodes in that path along with the path?
Upvotes: 2
Views: 548
Reputation: 10856
Does this do what you want?
MATCH path=(u:user)-[:CREATED]->(p:post)<-[:REBLOG_OF*]-(p2:post)
RETURN path, EXTRACT(node IN nodes(path) | ID(node))
Upvotes: 3