dotansimha/graphql-code-generator
Ver no GitHub[client-preset] allowed options and defaults
Open
#8.562 aberto em 2 de nov. de 2022
feature-requesthelp wanted
Métricas do repositório
- Stars
- (10.341 stars)
- Métricas de merge de PR
- (Mesclagem média 22d 9h) (53 fundiu PRs em 30d)
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)