parameterized Cypher query not working in Neography

408 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 best solutions below

0
On BEST ANSWER

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