Diizzayy / nuxt-graphql-client

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

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

Open some-user123 opened 10 months ago

some-user123 commented 10 months 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