dotansimha/graphql-code-generator
在 GitHub 查看[client-preset] allowed options and defaults
Open
#8,562 创建于 2022年11月2日
feature-requesthelp wanted
仓库指标
- Star
- (10,341 star)
- PR 合并指标
- (平均合并 46天 1小时) (30 天内合并 11 个 PR)
描述
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)