parameterized Cypher query not working in Neography

361 views Asked by At

Trying to execute a parameterized Cypher query with Neography v0.0.23.

Even though the non-parameterized version works:

Neo.execute_query("start n=node(3) return n")
 => {"data"=>[[{....

The parameterized version doesnt work:

Neo.execute_query("start n=node(id) return n", {:id => 3})
 => nil 
1

There are 1 answers

0
Nigel Small On BEST ANSWER

Try using "start n=node({id}) return n" with the parameter name in curly brackets.