dotansimha / dotansimha/graphql-code-generator-community

Specific `namingConvention` option for `typescript-react-apollo` generated documents

Open
#95 0 comments 5 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.