neo4j / apoc

Apache License 2.0
81 stars 27 forks source link

[pb3CtuNX] Adds convert.paths.toTree to deprecate old convert.toTree #618

Closed ncordon closed 3 months ago

ncordon commented 3 months ago

Cherry picked from https://github.com/neo4j-contrib/neo4j-apoc-procedures/pull/4044

What

Adds a new method convert.paths.toTree that deprecates convert.toTree.

Closes #3996, #3997

Why

There were several problems with the old method. For paths:

v1 -> v2 -> v3
v2 -> v2 //self-loop

it was outputting:

v1 -> v2 -> v2
v2 -> v2

instead of:

v1 -> v2 -> v2
         -> v3

This PR adds a new method that:

ncordon commented 3 months ago

/spotlessApply

ncordon commented 3 months ago

/generateLicenses