dotansimha/graphql-code-generator
Auf GitHub ansehen[client-preset] allowed options and defaults
Open
#8.562 geöffnet am 2. Nov. 2022
feature-requesthelp wanted
Repository-Metriken
- Stars
- (10.341 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 22T 9h) (53 gemergte PRs in 30 T)
Beschreibung
This issue is the place to discuss allowed options and default values when using the preset: 'client' setup.
Currently supported options
scalarsstrictScalarsnamingConventionuseTypeImportsskipTypenameenumsAsTypesarrayInputCoercionpresetConfig.fragmentMaskingpresetConfig.gqlTagNamepresetConfig.unmaskFunctionNameemitLegacyCommonJSImports
Requested options support
nonOptionalTypenamehttps://github.com/dotansimha/graphql-code-generator/pull/8702 - RequestimmutableTypeshttps://github.com/dotansimha/graphql-code-generator/pull/10459 - Request
Current defaults
presetConfig.fragmentMasking: trueinlineFragmentTypes: true(if fragment masking is enabled)emitLegacyCommonJSImports: trueinputMaybeValue: T | null | undefined
Requested defaults
ignoreNoDocuments: true(@charlypoly)- should
presetConfig.fragmentMaskingbefalseby default? (@charlypoly) dedupeFragments: true(https://github.com/dotansimha/graphql-code-generator/issues/8103#issuecomment-1298692748)enumsAsTypes: true(@n1ru4l)