Describe the bug
GraphQL supports returning promise for __resolveType and __isTypeOf (for interfaces and unions) since graphql/graphql-js#631, but code generator does not support it.
- My GraphQL schema:
- My
codegen.yml config file:
overwrite: true
schema: "./schemas/schema.gql"
documents: null
generates:
src/types.ts:
plugins:
- "typescript"
- "typescript-resolvers"
config:
useIndexSignature: true
Expected behavior
Generated code for TypeResolveFn and isTypeOfResolverFn should include the Promise as a result, similar to what it's done for ResolverFn.
Describe the bug
GraphQL supports returning promise for __resolveType and __isTypeOf (for interfaces and unions) since graphql/graphql-js#631, but code generator does not support it.
codegen.ymlconfig file:Expected behavior
Generated code for
TypeResolveFnandisTypeOfResolverFnshould include the Promise as a result, similar to what it's done for ResolverFn.