-
I am trying to make a gql resolver query so that we only query for certain fields if the user asked for it. For example:
but as you see in the comment, the strict function type check fails because we're expecting |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use Also this would be helpful; |
Beta Was this translation helpful? Give feedback.
You can use
mappers
in the config;https://www.graphql-code-generator.com/docs/plugins/typescript-resolvers
Also this would be helpful;
https://the-guild.dev/blog/better-type-safety-for-resolvers-with-graphql-codegen