dotansimha / dotansimha/graphql-code-generator-community
Specific `namingConvention` option for `typescript-react-apollo` generated documents
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
**Is your feature request related to a problem? Please describe.**
We would like to have a specific naming convention for documents generated by `typescript-react-apollo`.
Right now they fall under the category `typeNames` when it comes to the `namingConvention` config. So for example we cannot use SCREAMING_SNAKE_CASE for documents (constants), but keeping PascalCase for types.
**Describe the solution you'd like**
I would propose having a 3rd key available for `namingConvention`. So it would be `typeNames`, `enumValues` AND `documents` (for example)
**Describe alternatives you've considered**
Just keeping the same naming convention for documents and types. It breaks our style guideline, still it is not a showstopper.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.