I would like to pass parameters to cypher query. I have such a code.
Map<String, Object> params = new HashMap<String, Object>();
params.put("@par1", "some title");
params.put("@nid", 3);
ExecutionResult result = db.engine.execute("START n = node(@nid) with n set n.title = '@par1' RETURN n", params);
I got exception: Exception in thread "main" expected node id, or *
"START n = node(@nid) with n set n.title = '@par1' RETURN n"
But this doesn't work for me.
How can I pass parameters to this query?
thanks
Tomas