Diizzayy/nuxt-graphql-client

Unknown scalar types

sayajin101 opened this issue · 1 comments

Environment


  • Operating System: Darwin
  • Node Version: v18.17.1
  • Nuxt Version: 3.8.1
  • CLI Version: 3.9.1
  • Nitro Version: 2.7.2
  • Package Manager: npm@9.6.7
  • Builder: -
  • User Config: devtools, modules, components, pinia, imports, googleFonts, runtimeConfig, tailwindcss, dayjs, css
  • Runtime Modules: @nuxtjs/tailwindcss@6.9.4, @nuxtjs/google-fonts@3.0.2, @pinia/nuxt@0.5.1, @vueuse/nuxt@10.6.1, dayjs-nuxt@2.1.9, nuxt-graphql-client@0.2.31, @pinia-plugin-persistedstate/nuxt@1.2.0
  • Build Modules: -

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

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. 😕