MichalLytek / MichalLytek/type-graphql

Add config to enum to make it lowerCase

Open
#805 0 comments 4 reactions 0 assignees View on GitHub
Community :family_man_girl: Enhancement :new:
Dominant language
TypeScript
Stars
8.1k
Forks
672
PR merge metrics
No merged PRs in 30d

Description

It would be good to have configuration in order to change casing for enum values disregarding what tech stack i use.
e.g. for NodeJs it is nice to have enum upercased (having in minde that TypeScript users got used to use i tlike this from C#), but dor Dart best code practice is camelCassing. If re in mongodb camelCased enum values as weel as in dart code - I am forced to have same in NodeJs.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating enum generation and configuration handling in the TypeScript GraphQL schema code, then check how enum values are currently emitted. Done means a configuration can control enum casing independently of the consuming language, with tests covering the requested casing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.