dotansimha/graphql-code-generator
Vedi su GitHub[client-preset] allowed options and defaults
Open
#8562 aperta il 2 nov 2022
feature-requesthelp wanted
Metriche repository
- Star
- (10.341 star)
- Metriche merge PR
- (Merge medio 22g 9h) (53 PR mergiate in 30 g)
Descrizione
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)