You can do this using REMOVEon the shortcut Bookand SETon the new shortcut:
MATCH (p:Person)-[r]-(b:Book {id: id1})
REMOVE b:Book
SET b:DeletedBook
RETURN b
You should check out the Neo4j Cypher Refcard for a full reference to Cypher 2.x.
user1019830
source
share