-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
String versions of date scalars #1275
Comments
+1, would really benefit from this. |
|
This was referenced May 2, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Is your feature request related to a problem? Please describe.
As the available data scalars implementations serialize dates to Date objects, when using Apollo we end up with a difference of behavior between server-side and client-side, the former serializing to Date objects, while the latter leaves them as ISO strings.
Even without that inconsistency, it makes the migration from non-maintained graphql-iso-date difficult because of the change in types.
Describe the solution you'd like
Providing Date scalars that serialize to an ISO string would be a big help. For instance, adding a
GraphQLDateTimeIsoString
and aGraphQLDateIsoString
.Describe alternatives you've considered
Alternatives are either:
npm install --force
because of peer dependenciesNone of those are great :/
The text was updated successfully, but these errors were encountered: