dotansimha/graphql-code-generator
Auf GitHub ansehen[experimental-graphql-modules] no config in generation for enums
Open
#5.242 geöffnet am 11. Dez. 2020
corehelp wantedkind/enhancementpresets
Repository-Metriken
- Stars
- (10.341 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 46T 1h) (11 gemergte PRs in 30 T)
Beschreibung
Im using the new experimental graphql-module creation. In the old schema creation we had this config:
config:
constEnums: true
avoidOptionals: true
namingConvention:
enumValues: change-case#upperCase
Now the new graphql-modules option creates the complete schema but i cant set any config. So i lost all my enums basically (which follow TS spec, also saw it with DTS generator). I can create the other as well, but why having two schemas :)
example new situation:
/** Order your items */
export type BasketListOrdering =
/** By department, which is based on product taxonomy */
| 'DEPARTMENT'
/** By latest item added first */
| 'INPUT';
example old situation:
/** Order your items */
export const enum BasketListOrdering {
/** By department, which is based on product taxonomy */
DEPARTMENT = 'DEPARTMENT',
/** By latest item added first */
INPUT = 'INPUT',
}
btw really cool to see the progress on the suite!