ardeois / graphql-codegen-typescript-mock-data

[GraphQL Codegen Plugin](https://github.com/dotansimha/graphql-code-generator) for building mock data based on the schema.
MIT License
134 stars 46 forks source link

fix: never preserve underscores for enum values #75

Closed sebvilhelm closed 2 years ago

sebvilhelm commented 2 years ago

A fix for https://github.com/ardeois/graphql-codegen-typescript-mock-data/pull/61

In @graphql-codegen/typescript enum values never preserve underscores, as a conscious decision: https://github.com/dotansimha/graphql-code-generator/issues/1569

This fix aligns with that decision.

sebvilhelm commented 2 years ago

@ardeois if you have time to review this, I would appreciate it, so my previous changes better align with the typescript plugin 😄

ardeois commented 2 years ago

@VilhelmNielsen sorry for the delay, it seems good, merging in a few seconds