DateOnly filter returns as DateTime #7899
Unanswered
jeffzickgraf
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
-
When trying to collect filter values from the default IFilterContext implementation in Hot Chocolate 13, when I use .ToDictionary() say on a Greater Than where statement with a DateOnly field, the serializer seems to not respect DateOnly and returns this values as a DateTime object.
I saw that "DateType" was implemented for DateOnly: #4483
But I'm not sure how to best handle this call to serialize for IFilterContext. Can someone point me in the right direction? We need a value that is DateOnly and does not include time artifacts as it creates a failure when a backing API tries to translate 1/2/2020 12:00:00 AM to a DateOnly when projecting a query.
Beta Was this translation helpful? Give feedback.
All reactions