-
Notifications
You must be signed in to change notification settings - Fork 147
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
DateTime comparison in WHERE condition #332
Comments
Hmmm.. That would be a bug |
I think I've hit the same problem as all my initial graphs use dates considerably. I've narrowed it down to this sample, which shows that the WHERE clause never returns true, even though it should always.
It works if I wrap the C# datetime parameter in an explicit datetime():-
|
Happy to try and fix this with some pointers. |
I don't think this is a bug it's just not yet supported. C# DateTime is serialized to a Neo4j string property in the format "2020-03-09T16:45:00.9199162+01:00" and back from string to C# DateTime. The neo4j temporal types and features which where introduced end of 2018 are not yet supported, see Issue #291 |
Hmm not entirely true - adding the The problem is how the I guess maybe an overload to |
Hello, I'm trying to use Neo4jClient to implement a few basic queries and some obstacles came along when I tried to query Neo4j datetime properties with .NET datetime objects. Let's assume I have the following model:
...and the following query:
This produces the following Neo4j query:
...which seems to be incorrect as in order to get the correct result, the query parameter should be parsed to Neo4j DateTime object, as below:
Am I doing something wrong or is it a bug?
The text was updated successfully, but these errors were encountered: