graphql-scalars
graphql-scalars copied to clipboard
Date parsing fails
Date cannot represent an invalid date-string 1993-02-12T00:00:00.000Z.
This error gets thrown if a date comes back from a database. This is weird and probably a bug since the scalar itself delivers a javascript date object which is represented exactly this way and it stops complaining if it gets passed in new Date() first.
so it is enough to serialize the date object produced by this scalar and pass it back to a resolver with the same scalar to cause this issue. I don't think this is a wanted behavior.
https://github.com/Urigo/graphql-scalars/pull/1641