Date/DateTime property comparison in Where step #484
Unanswered
yongkansage
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems the comparison operation is not supported? Tried the following,
g.V().Or(
__ => __.Where(a => a.ModifiedDateTime == null),
__ => __.Where(a => a.ModifiedDateTime < DateTime.UtcNow))
g.V().Or(
__ => __.Where(a => a.ModifiedDateTime == null),
__ => __.Values(a => a.ModifiedDateTime)
.Where(modifiedDateTime => modifiedDateTime < DateTime.UtcNow))
g.V().Or(
__ => ___.Values(a => a.ModifiedDateTime)
.Where(modifiedDateTime == null),
__ => __.Values(a => a.ModifiedDateTime)
.Where(modifiedDateTime => modifiedDateTime < DateTime.UtcNow))
The query similar to the following was expected:
g.V().or(.hasNot('modifiedDateTime'),.has('modifiedDateTime',lt(datetime('2021-10-07T00:33:44.536Z'))))
instead, all yielded the following:
g.V().or(.hasNot('modifiedDateTime'),.has('modifiedDateTime'))
The similar comparisons are translated properly in Choose step, but Choose step can only be used with Property step.
Beta Was this translation helpful? Give feedback.
All reactions