We have hit an issue recently using this library where an iso date was not recognised as valid as it wasnt in one of the 3 formats defined here:
https://github.com/graphql-compose/graphql-compose/blob/master/src/type/date.ts#L7-L9
The format we used was "yyyy-MM-ddTHH:mm:ss.SSSSSS"
Generally speaking we are wondering whether it would be possible to extend to include more date formats?
One idea could be to try and create a Date instance out of the string and see if its accepted to avoid having to list all the possible formats.
We have hit an issue recently using this library where an iso date was not recognised as valid as it wasnt in one of the 3 formats defined here:
https://github.com/graphql-compose/graphql-compose/blob/master/src/type/date.ts#L7-L9
The format we used was "yyyy-MM-ddTHH:mm:ss.SSSSSS"
Generally speaking we are wondering whether it would be possible to extend to include more date formats?
One idea could be to try and create a Date instance out of the string and see if its accepted to avoid having to list all the possible formats.