Auto generated unique Ids

Is there a way to define an auto-increment ID during a csv import.

as far as i know not out of the box. but you can easily write your own trigger to add a property with a uuid on createnodes.
or of course you can always add your own procedure and call that as part of your csv import

CALL apoc.trigger.add('add-uuid-new-nodes',"UNWIND {createdNodes} AS n set n.uuid=apoc.create.uuid()", {phase:'after'})

1 Like