-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support Date type by default #61
Comments
Sadly - currently typescript reflect api does not recognize dates: http://blog.wolksoftware.com/decorators-metadata-reflection-in-typescript-from-novice-to-expert-part-4 If it's changed - would be great to add such feature |
It's not true 😉 There's was a bug with TypeScript compiler api that is used programatically like by ts-jest but it's reported to be fixed: |
awesome @19majkel94! Will take a stab at implementation. |
I did make it work in my namespaced fork of typegql: capaj@19a9dd5 I attempted the same in this repo and it ended up in error while building:
also jest infer test failed as well. Maybe jest is still running some old version of typescript? Not sure. I can't really open a PR from my fork, because it has those DuplexTypes and some of other changes. So I guess it's up to you @pie6k |
currently if you want to handle dates correctly for a field, you need to explicitly use a scalar, like this:
since this is very common-it would be great to enable this behavior by default, so you can omit the explicit type:
The text was updated successfully, but these errors were encountered: