apollographql / apollographql/apollo-tooling

Add an option to generate enums as pascal case

Open
#1,833 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

We're following the style guide outlined in the typescript book https://basarat.gitbook.io/typescript/styleguide#enum

We want our enums to be pascal case but I do not see an option in the apollo cli to generate our enums in that format. I would like to add an option to the `client:codegen` command to adjust enums to be pascal case rather than shout-case.

Contributor guide

Open the contributing guide

Research direction

Start at the client:codegen command entry point and trace how enums are generated. Done means the command accepts an option that generates Pascal Case enums instead of shout-case, while the existing behavior remains available; check the generated output for both modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.