Skip to content
Discussion options

You must be logged in to vote

After reading this: https://the-guild.dev/blog/better-type-safety-for-resolvers-with-graphql-codegen
i would like to add that the reason that i don't want to use mapper is because the GQLUser resolver will be omitted there wont be any TS error but clearly the return value of getUser would be wrong and gql will fail at runtime (because nothing will transform DBUser to GQLUser) and that's what im trying to avoid.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gilgardosh
Comment options

Answer selected by bennyk8y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants