neo4j-apoc-procedures icon indicating copy to clipboard operation
neo4j-apoc-procedures copied to clipboard

add elementID in apoc.convert.toTree output as key-value pair (`_elementId`)

Open dorn-gerhard opened this issue 1 year ago • 1 comments

Feature description (Mandatory)

As the use of ID is not recommended and instead elementId should be used in future it would be convenient to have an additional key-value pair _elementId in the output of the apoc.convert.toTree method.

In addition it would be convenient to make _id, _elementId and _type suppressable via the config: { nodes: {'Labelname': ['-_id', ...]}}

Considered alternatives

Alternatives would be to work with ID or to add a unique ID to all nodes.

dorn-gerhard avatar Jan 01 '24 11:01 dorn-gerhard

Hi! Thank you for writing in, I have added this suggestion to our work on migrating APOC to be more elementId friendly

gem-neo4j avatar Jan 03 '24 08:01 gem-neo4j