This expression is not callable. Not all constituents of type ... are callable. #9765
Unanswered
HarryDavisgithub
asked this question in
Q&A
Replies: 1 comment
-
So, the GraphQL tools support both resolvers which are functions, and resolvers which are objects which have a You can add the config option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am currently in the process of upgrading our graphql-codegen packages to latest(v 4.0.1). But am having issues with some types in resolvers. Specifically when trying to call a resolver from another resolver. Similar to this issue here. However this solution does not work for me. It looks like noSchemaStitching's default is true now (perhaps wasn't before?)
Current versions:
"@graphql-codegen/typescript": "^1.21.1", "@graphql-codegen/typescript-resolvers": "^1.19.0",
File structure:
.graphqlrc.yml:
Example type resolver causing issue:
Trying to call MyResolver.getNumber5() like this will give:
Any suggestions welcome. I currently just want to update the packages, in the future look into using something like the server-preset.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions