Graphql-code-generator: enumPrefix not being respected for mutation variables

Created on 24 Sep 2019  路  3Comments  路  Source: dotansimha/graphql-code-generator

Describe the bug
The generation of mutation variables does not respect enumPrefix: false.

To Reproduce
https://codesandbox.io/embed/graphql-codegen-issue-template-iyx2e

Use yarn generate.
Have a look at types.ts. You'll notice that IGender is used in IUpdateUserProfileMutationVariables instead of Gender.

Expected behavior
Mutation variable generation should respect enumPrefix.

Environment:

  • Windows 10 / macOS Catalina Beta
  • @graphql-codegen/1.7.0
  • Node.js v10.16.3
bug plugins waiting-for-release

All 3 comments

@P4sca1 I think I managed to fix that in: https://github.com/dotansimha/graphql-code-generator/pull/2622
Can you please give it a try? the latest alpha is 1.7.1-alpha-1e9152fb.90.

Using 1.7.1-alpha-1e9152fb.90 solves the issue!

Fixed in 1.8.0 馃殌

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SimenB picture SimenB  路  3Comments

RIP21 picture RIP21  路  3Comments

edorivai picture edorivai  路  3Comments

NickClark picture NickClark  路  3Comments

zenVentzi picture zenVentzi  路  3Comments