Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
366 stars 44 forks source link

Custom GraphQL type become any, make result types configurable #355

Open some-user123 opened 1 year ago

some-user123 commented 1 year ago

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