Reputation: 1589
I have a bunch of actors and movies in my database. The movies have titles and I want to convert all the properties that have title as their property name to be "name". Would like to do this via cypher. Thanks!
Upvotes: 0
Views: 211
Reputation: 41706
start n=node(*)
where has(n.title)
set n.name = n.title
delete n.title
return count(*);
Upvotes: 3