Skip to content

Typescript: how to handle resolvers that return partial data? #4030

Answered by ardatan
aryzing asked this question in General
Discussion options

You must be logged in to vote

Actually GraphQL in general allows you to return any kind of data in resolvers. So that's why we have mappers to let specify the types for those.
https://graphql-code-generator.com/docs/plugins/typescript-resolvers#mappers---overwrite-parents-and-resolved-values

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aryzing
Comment options

@dotansimha
Comment options

@loucadufault
Comment options

Answer selected by ardatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants