Updating properties on nodes and relationships is done with the SET
clause.
To set a property on a node or relationship, use SET
.
Query
START n = node(2) SET n.surname = 'Taylor' RETURN n
The newly changed node is returned by the query.
Try this query live. (1) {"age":34,"name":"Peter"} (2) {"age":36,"name":"Andres","surname":"Taylor"} (2)-[:KNOWS]->(1) {} start n = node(2) set n.surname = 'Taylor' return n
Copyright © 2012 Neo Technology