Skip to content

Instantly share code, notes, and snippets.

View philastrophist's full-sized avatar

Shaun Read philastrophist

View GitHub Profile
@philastrophist
philastrophist / fetch_tree.adoc
Created September 21, 2020 14:52 — forked from jexp/fetch_tree.adoc
Fetch a Tree with Neo4j

Fetch a Tree with Neo4j

Today I came across a really interesting StackOverflow question:

Given a forest of trees in a Neo4j REST server, I`m trying to return a single tree given the root vertex. Being each tree quite large, I need a de-duplicated list of all vertices and edges in order to be able to reconstruct the full tree on the client side.