Replies: 1 comment 3 replies
-
Are you writing your types by hand, or doing something like GraphQL Code Generator's TypeScript Resolvers support ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to split my resolver code up into smaller chunks as our resolvers file was getting large. We use TypeScript and I wanted to type each resolver using
GraphQLFieldResolver
. I providedTSource
,TContext
, andTArgs
but noticed I was getting errors related toTArgs
. BecauseGraphQLResolverMap
does not provide anything forTArgs
, it will always use the defaultTArgs
.Even if I did not split my resolvers up, we would have to use the default
TArgs
due to howGraphQLResolverMap
is built.Is this intended or are there plans to support this down the road?
Beta Was this translation helpful? Give feedback.
All reactions