Skip to content

Instantly share code, notes, and snippets.

@bitner
Created September 27, 2021 19:19
Show Gist options
  • Save bitner/3532b3c2c87362c94b0341baf5f71d92 to your computer and use it in GitHub Desktop.
Save bitner/3532b3c2c87362c94b0341baf5f71d92 to your computer and use it in GitHub Desktop.
neo4j-to-json
MATCH (n:DataProduct) WHERE id(n) = 6737 CALL apoc.path.expand(n, ">", "*", 1, 4) YIELD path WITH collect(path) as paths CALL apoc.convert.toTree(paths) yield value RETURN value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment