Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equals method in Match.Where doesn't resolve to = #479

Open
Evertude opened this issue Aug 15, 2024 · 0 comments
Open

Equals method in Match.Where doesn't resolve to = #479

Evertude opened this issue Aug 15, 2024 · 0 comments
Assignees
Labels

Comments

@Evertude
Copy link

Describe the bug
When using Cypher to Match with a Where expression using an Equals method, the = is missing in the query

The second query in the sample below produces
MATCH (n:Test)
WHERE n.Id"72824ef9-1920-48ed-bc4d-54059bd681e8"
RETURN count(*)

Versions:

  • Neo4jClient 5.1.15
  • GraphClient
  • .NET 8
  • Server Version 4.1.3

To Reproduce

class Test
{
    public Guid Id { get; set; }
}

Client = new GraphClient(...)
Client.ConnectAsync().Wait();

Guid id = Guid.NewGuid();
var works = Client.Cypher.Match("(n:Test)").Where((Test n) => n.Id == id).Return(() => All.Count());
var broken = Client.Cypher.Match("(n:Test)").Where((Test n) => n.Id.Equals(id)).Return(() => All.Count());

Expected behaviour
In both cases, I'd like to have this query
MATCH (n:Test)
WHERE (n.Id = "72824ef9-1920-48ed-bc4d-54059bd681e8")
RETURN count(*)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants