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 (1,295 forks)batch import
feature-requesthelp wanted

Repository metrics

Stars
 (10,341 stars)
PR merge metrics
 (平均マージ 46d 1h) (30d で 11 merged PRs)

説明

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

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