dotansimha/graphql-code-generator

[client-preset] allowed options and defaults

Open

#8,562 opened on 2022年11月2日

GitHub で見る
 (43 comments) (9 reactions) (1 assignee)TypeScript (10,341 stars) (1,295 forks)batch import
feature-requesthelp wanted

説明

This issue is the place to discuss allowed options and default values when using the preset: 'client' setup.

Currently supported options

  • scalars
  • strictScalars
  • namingConvention
  • useTypeImports
  • skipTypename
  • enumsAsTypes
  • arrayInputCoercion
  • presetConfig.fragmentMasking
  • presetConfig.gqlTagName
  • presetConfig.unmaskFunctionName
  • emitLegacyCommonJSImports

Requested options support

Current defaults

  • presetConfig.fragmentMasking: true
  • inlineFragmentTypes: true (if fragment masking is enabled)
  • emitLegacyCommonJSImports: true
  • inputMaybeValue: T | null | undefined

Requested defaults

コントリビューターガイド