Setting more than one property in cypher query

130 views
Skip to first unread message

Abdul Azeez Shaik

unread,
Sep 27, 2012, 9:54:25 AM9/27/12
to ne...@googlegroups.com
Dear all,

Is it possible to set more than one property in one cypher query?
Its throwing me error when i tried to do it.
Please find below the query which i tried,

@Query("START p = node:photouniqueid(photouniqueid={0}) SET p.photoname = {1} AND p.seasonname = {2}")

Thanks,

Abdul

Wes Freeman

unread,
Sep 27, 2012, 10:08:09 AM9/27/12
to ne...@googlegroups.com
You want to use a comma instead of AND.

Wes

--
 
 

Abdul Azeez Shaik

unread,
Sep 27, 2012, 10:28:06 AM9/27/12
to ne...@googlegroups.com
Thanks for the prompt response Wes, its working now.

Thanks,
Abdul

--
 
 

Michael Hunger

unread,
Sep 27, 2012, 2:28:57 PM9/27/12
to ne...@googlegroups.com
if you use it not in a console you should use parameters

and then you can use SET with map properties

SET n = {map}

Michael

--
 
 

Abdul Azeez Shaik

unread,
Sep 27, 2012, 11:27:15 PM9/27/12
to ne...@googlegroups.com
I am executing it from SDN and map really helps.
Thanks for the information.

Regards,
Abdul

--
 
 

Reply all
Reply to author
Forward
0 new messages