graphql-compose / graphql-compose/graphql-compose

Request to extend possible date formats

Open
#395 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
75
Avg merge
1d 2h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.