DateTime Scalar?
#1006
-
I have a DateTime field in MongdoDB with this format
It will just get the date when I query, but I also need the time. I tried to change this to
But I got this error
but in GraphQL Scalar DateTime is available https://the-guild.dev/graphql/scalars/docs/scalars/date-time Any ideas on how to implement DateTime Scalars? |
Beta Was this translation helpful? Give feedback.
Answered by
ccfiel
Sep 2, 2023
Replies: 1 comment
-
Okay, I solved this one by importing DateTimeResolver. Problem solved! :)
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ccfiel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, I solved this one by importing DateTimeResolver. Problem solved! :)