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.

Conversion of a id property from String to Long does brake the corresponding relationships ?

Hi everyone,

i would like to ask if i convert (type cast)  a id property from String to Long (using a cypher like this MATCH (p:Product) SET p.quantity = toInteger(p.quantity); ) does it brake the corresponding relationships the id property is already  involved? Thanks in advance!!!!

1 ACCEPTED SOLUTION

It will not. The relationships are not based on property values, like keys in a relational database. The nodes are related with relationships that are created between two nodes. You need to delete the relation if it no longer applies. You can change any property, node label, or relationship type and the property still exists.

View solution in original post

1 REPLY 1

It will not. The relationships are not based on property values, like keys in a relational database. The nodes are related with relationships that are created between two nodes. You need to delete the relation if it no longer applies. You can change any property, node label, or relationship type and the property still exists.