Is there anything in cypher equivalent to sequence.nextval in Oracle


I want to create employee table in Neo4j. I will create a node for each employee with his name, address, phone, email. when I insert each employee data i should get employee id generated in database. It means employee id is also a property of employee node which is auto generated. Is there a way how to generate integer sequence while creating node in cypher.

Does it need to be an auto incremented id, or are you looking for a way to create a primary key for nodes? If the latter perhaps the UUID function in the APOC standard library would help?

1 Like


I am looking for auto increment id.

Thanks & Regards,