You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
picbeats
changed the title
Graphql: le,lt,ge, gt on datetime work opposite way (ie. le as ge)
GraphQL: le,lt,ge, gt on datetime work opposite way (ie. le as ge)
Dec 12, 2023
It's not the same bug. I checked #2058 changes, and while it does fix le vs lt it does not seems to me that it fixes opposite ordering of datetime. I'd expect lt with gt swap in the code. There is also apparently no test checking correct ordering for dateTime.
Describe the bug
In GraphQL queries
le,lt,ge, gt on datetime work opposite way (ie. le as ge)
To Reproduce
Schema
Data:
GraphQL query
Result
Expected behavior
Query should return record with name "a2" since it timestamp "2023-12-12T16:41:33.870064Z" is bigger that specified "2023-12-12T16:11:33.870064Z"
Similar issues with other comparison operators, looks like le, lt are swapped with ge,gt
Info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: