Michael Hunger
unread,Dec 11, 2012, 6:11:01 PM12/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ne...@googlegroups.com
That's correct. Cypher syntax is not JSON !
If you want to pass in maps, please use parameters, please use parameters anyway ! Otherwise you will generate queries that cypher cannot cache and has to re-parse everytime.
Michael
> {"query" : "CREATE (N {params});", "params" : {firstName: 'John', lastName: 'Doe'}}
Am 11.12.2012 um 19:45 schrieb acg:
> Standard convention is that property names and values are wrapped in double quotes, which Json.Stringify outputs:
>
> {"firstName":"John","lastName":"Doe"}
>
> But the cypher syntax rely's on the absence of double quotes (at least on the property names):
>
> {"query" : "CREATE (N{firstName: 'John', lastName: 'Doe'});"}
>
> Sorry if this concern has been answered before, any good recommendations on handling the matter?
>
> Thanks in advance!
>
> --
>
>