What is the right way to handle this in cypher without numerous trips back to the server or a massive selection of data like the above query?
If you have a large hierarchy, you will have two main options: get several levels of the hierarchy at a time (which will require trips to the server to get the next fragment), or you can get everything as you do. I do not see the third option, so it may not be possible to get a large hierarchy without any of these functions.
, , , . , ? ? . , . ( , , ). , "", ( "E-book reader", "computer" ..). , IMHO - , . , AJAX -. , AJAX- .
, , :
MATCH (category:Category { id: "whatever user picked" })-[:narrower]->(children:Category)
RETURN children
ORDER BY children.name;
( ) , , " ".