Neo4j cypher edit node content

21 views
Skip to first unread message

hooman rouhani

unread,
Oct 3, 2012, 1:45:40 AM10/3/12
to ne...@googlegroups.com
hi
how can i edit node content not property by property?  (i dont want to remove node and recreate it)
for example here is my node:
start n=node(3) retrun n; Result is :  {type:"Person",name:"John"}
i want to do something like this :
start n=node(3) set n={type:"Employee",name:"jane",code:2434} return n;
instead of this:
start n=node(3) set n.type="Employee",n.name="jane",n.code=2434 return n; 
any solution?
thank you.

Michael Hunger

unread,
Oct 3, 2012, 3:28:09 AM10/3/12
to ne...@googlegroups.com
Why?

You can use parameters for SET

aka set n = {props)

Michael
> --
>
>

Reply all
Reply to author
Forward
0 new messages