I just started to use a neo4jclient and I am struggling with cypher queries. I used the query from here, but I did not figured out How can I get the results and work with them.
First I put some node in database and then I wanted to retrieve them (in this case one) and I tried this :
var u = client.Cypher
.Match("(user:User)")
.Where((User user) => user.Id == 1)
.Return(user => user.As<User>());
Console.WriteLine(u.Results.ToList().First().Id);
(I am sure that there are nodes in database and also node with Id = 1)
But on the line with Results method I am getting this exception:
SyntaxException: expected START or CREATE "MATCH (user:User)"
I am total beginner with neo4j and I was not able to find out how to access and work with results of query, So I want to ask you for help. Thank you in advance.