Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-13-2022 09:29 PM
CREATE (john:User {name:'John', gender:'M', age:'28'}) RETURN john
I used this command to create a User node and under that it has 3 properties
But the ID property is been generated by default
By default it is 0
But i want to change the ID property to 1?
How can i do that?
Solved! Go to Solution.
12-14-2022 04:27 AM
Hi @Jupyter123 - the ID is an internally generated, guaranteed-to-be-unique ID (I assume you're talking about https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-elementid ). You cannot change it.
12-14-2022 04:27 AM
Hi @Jupyter123 - the ID is an internally generated, guaranteed-to-be-unique ID (I assume you're talking about https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-elementid ). You cannot change it.
12-14-2022 08:52 AM
Only way is to delete the node and create it again
MATCH (john:User) where john.name = "John"
DETACH DELETE john
CREATE (john:User {name:'John', gender:'M', age:'28'}) RETURN john
All the sessions of the conference are now available online