Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-03-2022 08:32 AM
What is the best way to get all the end nodes of a tree? Can it be achieved with a pure cypher or apoc function?
I've thought that I can return all of them based on the fact they don't have any outcoming relationships. Would it be possible?
Solved! Go to Solution.
03-03-2022 10:03 AM
Hi @marcelix161 ,
You can execute a pure cypher query like
MATCH(:root {//root condition})-[:MINST*]->(leaf)
where not (leaf)-[:MINST]->()
return leaf
Bennu
03-03-2022 10:03 AM
Hi @marcelix161 ,
You can execute a pure cypher query like
MATCH(:root {//root condition})-[:MINST*]->(leaf)
where not (leaf)-[:MINST]->()
return leaf
Bennu
All the sessions of the conference are now available online