cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Auto generated unique Ids

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

1 REPLY 1

accounts
Node Clone

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'})