Describe the bug
Context type is missing in import statement of generated resolver with module#type syntax in configuration of contextType
To Reproduce
Steps to reproduce the behavior:
# ...
generates:
path/to/file.ts:
config:
contextType: ./context#MyContext
plugins:
- typescript-resolvers
graphql-codegen with configuration fileExpected behavior
Generated resolver should have an import statement like
import { MyContext} from './context';
and getting the following (missing the type)
import { } from './context';
Hi @mdaouas , thank you for reporting it.
I created a fix for it: https://github.com/dotansimha/graphql-code-generator/pull/1522
I'll merge and release a new version (1.0.2) once CI passes.
Awesome @dotansimha - thanks for the super quick turnaround. I was just coming to report the same thing. :)
Fix available in 1.0.2.
Most helpful comment
Hi @mdaouas , thank you for reporting it.
I created a fix for it: https://github.com/dotansimha/graphql-code-generator/pull/1522
I'll merge and release a new version (1.0.2) once CI passes.