I can pass a JSON object to a cypher query using the driver... but It doesn't seem possible to pass an object to the browser using the :params function.
:params obj => { name: "eric", state: "confused" }
Any suggestions?
I like to set up a mapped object that I can use throughout the query.
WITH {} as qparam
MATCH (nodes:N {id:$id})
WITH qparam {.*, nodes: COLLECT(nodes) }
now I just hand qparams to each part of the query and user the mapped object nodes.
Ugh, this seems much more elegant than what I was using to accomplish this. I'm curious as to the performance.
WITH { list:["Creator", "Juniors", "Technic"]} AS nody
WITH nody where REDUCE(string = '', n IN nody.list | string + " | " + n) CONTAINS "J...