Diizzayy / nuxt-graphql-client

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

Unknown scalar types #451

Open sayajin101 opened 9 months ago

sayajin101 commented 9 months ago

Environment


Describe the bug

When turning on Codegen it is complaining about my scalar types: AWSDate & AWSDateTime.

Obviously there is a list of other AWS scalar types for AppSync which I am not using but would cause the same errors.

Could these scalar types be added to the main code base or is there a way I can import them so that your plugin knows about them?

Expected behavior

To have Codegen working

Reproduction

Use AppSync & set some AWS specific scalar types against your fields

jamestharpe commented 9 months ago

Codegen's configuration allows you to map custom scalars to TS types, but I'm not sure how to expose that using nuxt-graphql-client. 😕