Custom GraphQL type become any, make result types configurable
Opened this issue · 0 comments
some-user123 commented
Your use case
My graphql schema defines custom types, e.g.
scalar date
scalar uuid
Using nuxt-graphql-client fields with these types get typed as any
.
The solution you'd like
Ideally, I can configure the mapping of these graphql types to javascript/typescript types (e.g. date
to string
, uuid
to string
).
Possible alternatives
Provide more type safety by typing unknown types as unknown
instead of any
(or make this a configuration option...)
Additional information
No response