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
Post a Comment