neo4j / apoc

Apache License 2.0
84 stars 27 forks source link

[7nVhdJu3] apoc.convert.toTree keep all rels in tree fix #581

Closed gem-neo4j closed 6 months ago

gem-neo4j commented 7 months ago

Adds element id and rel element id to the tree, this allows us to check if a relationship-node pair is unique, before the assumption was that it was unique if the rel type and node id pair was unique, which meant nodes with 2 rels of the same type, pointing to the same node were ignored.

These extra fields are additive, which is why I think it is okay, let me know if you think this is breaking or not!

gem-neo4j commented 7 months ago

Docs: https://github.com/neo4j/docs-apoc/pull/254