You can combine node into John (or primary identifying attribute). Then set the properties after a successful merge.
You can set them all at once using the map for all attributes
merge (n:Node {name: 'John'}) set n = {name: 'John', age: 34, coat: 'Yellow', hair: 'Brown'} return n
If you just wanted to replace the attributes of age and coat , you can do it instead.
merge (n:Node {name: 'John'}) set n.age = 34, n.coat = 'Yellow' return n
Or you can add it as a map too
merge (n:Node {name: 'John'}) set n += {age: 34, coat: 'Yellow'} return n
Dave bennett
source share