Neo4jclient query gives me error -


what wrong query

 var result = neo4jcontroller.m_graphclient.cypher                 .match("(a:" + objworld.getlabel() + " { name : {name} })")                 .create("(a)-[r:" + rel_world.world_country + "]->(b:" + objcountry.getlabel() + "{ objcountry }")                 .withparams(new                 {                     name = objworld.name,                     objcountry = objcountry                 })                 .return((b, r) => new                 {                     countrycount = b.count(),                     relationcount = r.count()                 })                 .results                 .single(); 

i getting error message=syntaxexception: invalid input 'r': expected whitespace, comment or ')' (line 3, column 1) "return count(b) countrycount, count(r) relationcount"

i using neo4jclient interact neo4j

forgot add ')' in query field.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -