Error "Cannot find name 'User'" in typescript-resolvers output #5841
Closed
Labels
core
Related to codegen core/cli
kind/bug
Bug :-(
stage/1-reproduction
A reproduction exists
stage/2-failing-test
A failing test was created that describes the issue
Describe the bug
I am just getting used to typescript/graphql etc, so my terminology might not be so good, however I get an error with the resulting type definitions when using the typescript-resolvers plugin with the
typesPrefix
set andenumPrefix
set to false. My guess is I misunderstood the intent of theenumPrefix
option, or there is a bug.To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/s/beautiful-smoke-1c1x2?file=/types.ts
Expected behavior
The resolver would use the type name with the prefix.
Environment:
@graphql-codegen/...
:@graphql-codegen/typescript
@graphql-codegen/typescript-operations
@graphql-codegen/typescript-resolvers
The text was updated successfully, but these errors were encountered: