Closed capaj closed 5 years ago
custom scalar types are generated as aliases to any
(since we can't know anything about them)
export type DateTime = any
and then these types are used as field types, so you'll still have readable type names in code completion
thanks. It would be nice to be able to define a custom scalar and be able to define how it should deserialize. Like for example if I had DateTime, I could define it to deserialize into a moment instance instead of just being a string.
@capaj good idea, I will put it on the roadmap!
I'll create that as a separate issue.
We use a lot of custom scalars from https://github.com/capaj/graphql-scalars, would the type def generation work even for those?