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

Property for changing type name case is keyed inconsistently #104

Closed emab closed 1 year ago

emab commented 1 year ago

Currently the property to select a case name change function is typename whereas for enum value it is enumValue.

To be consistent it would be nice to have consistency between these two properties as it's easy to miss this and end up spending a while debugging why a type name isn't changing (I just did this 😆 ).

ardeois commented 1 year ago

@emab indeed that could be confusing, but we're trying to keep the same options as in typescript plugin

However I see this should have been named typeNames and you did a PR for it already 👍

CleanShot 2022-12-23 at 15 26 16

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.