dotansimha/graphql-code-generator
View on GitHub[client-preset] allowed options and defaults
Open
#8562 opened on Nov 2, 2022
feature-requesthelp wanted
Description
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)