excitement-engineer / graphql-iso-date

A set of RFC 3339 compliant date/time GraphQL scalar types.
MIT License
523 stars 50 forks source link

Queries with DateTime are too strict #133

Open thardy opened 4 years ago

thardy commented 4 years ago

I'm using DateTime in my model, but when I use simple date formats like '1-1-2020' in my queries, they fail validation. Why is that? The back-end date may contain both a date and a time, but like any other query language I want to be able to query these fields with simple date formats or with more specific DateTime formats. Why can't I query a DateTime with a Date?

I'm trying to figure out the best way to accomplish the above and having some trouble with it. Any advice?