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
133 stars 47 forks source link

fix: wrong generation of typenames #53

Closed ardeois closed 2 years ago

ardeois commented 2 years ago

When GraphQL types had non-pascal-case typing, the usage of mock function was incorrect.

We forgot to apply the casing on type names

Thanks for @vitorcamachoo for reporting the issue and @ccblaisdell for the reproduction

Fixes #40