cancel
Showing results for 
Search instead for 
Did you mean: 

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

glilienfield
Ninja
Ninja

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

glilienfield
Ninja
Ninja

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.