I have 3 classes. They are related hierarchically. How get hiearchiacal data and union it it one class or dictionary array? I lately want insert data to treeview
3 classes
You can try to do:
MATCH (root:Lvl1)-[:HAVE_LVL2|HAVE_LVL3*0..]->(leaf)
RETURN distinct leaf