(cy/tquery conn "MATCH (n:Folder) WHERE n._nodeid = {_nodeid} RETURN n;" {:_nodeid _nodeid})
--I am trying to use clojure neocons to perform a cypher query where I need to use a variable placeholder for the label:
(def node-query "MATCH (n:{_nodetype}) RETURN n;")
I am getting an error when I add {_nodetype} but no error when I remove {_nodetype}
"Invalid input '{': expected whitespace or a label name (line 1, column 10 (offset: 9))\\n\\\"MATCH (n:{_nodetype})\\\"\\n ^\",\n \"exception\"...
Here is my call to tquery:
(cy/tquery conn node-query {:_nodeid _nodeid :_nodetype "Folder"})
What is the cypher / neocons syntax to MATCH by label with a variable?
I am very grateful for help you could suggest.
Documentation: http://clojureneo4j.info
Issues: https://github.com/michaelklishin/neocons/issues
More Clojure libraries: http://clojurewerkz.org
---
You received this message because you are subscribed to the Google Groups "clojure-neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-neo4...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-neo4j.
For more options, visit https://groups.google.com/d/optout.