Graphql-code-generator: enumPrefix not working properly with typescript-resolvers

Created on 16 Apr 2020  路  4Comments  路  Source: dotansimha/graphql-code-generator

Describe the bug
This issue is similar to #2621 but when adding additional plugins, we see some types mapping with prefix and some not for enums.

      - typescript-resolvers
      - typescript-react-apollo
bug plugins

All 4 comments

@veeramarni can you please provide a reproduction for this?

@veeramarni ?

Will create a test case shortly.

I have tried to replicate the issue here https://codesandbox.io/s/graphql-codegen-issue-template-r8qht?file=/types.ts:3877-3881

Noticed, the issue with a prefix on the type instead of enum. Instead of IUser it uses User in resolvers. The issue still exist in the latest version(1.14.0) as well.

Was this page helpful?
0 / 5 - 0 ratings