Iam trying to execute a CypherQuery after forming a string and passing it on to the ExecuteCypherResults API of Neo4jClient. I have attempted this because of a need to dynamically create nodes and appropriate labels. Paramter Substituion is not applicable for labels and hence I formed a cypher query string and tried to execute.
String qry="";
qry="Create n:Person";
GraphClient client=new GraphClient(new Uri("localhost:7474/db/data"));
client.Connect();
var results = ((IRawGraphClient)client).ExecuteGetCypherResults(new CypherQuery(qry,null, Neo4jClient.Cypher.CypherResultMode.Projection));
When executing I get the following error : Compiler Error Message: CS0411: The type arguments for method 'Neo4jClient.IRawGraphClient.ExecuteGetCypherResults(Neo4jClient.Cypher.CypherQuery)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
Any help in this regard will be great..