16.19. Set

16.19.1. Set a property

Updating properties on nodes and relationships is done with the SET clause.

16.19.1. Set a property

To set a property on a node or relationship, use SET

Query

START n = node(2)
SET n.surname = 'Taylor'
RETURN n

The newly changes node is returned

Result

n
1 row
Properties set: 1
1 ms

Node[2]{name->"Andres",age->36,surname->"Taylor"}