dotansimha/graphql-code-generator

[client-preset] allowed options and defaults

开放

#8,562 创建于 2022年11月2日

 (43 条评论) (9 个反应) (1 位负责人)TypeScript (1,295 个派生)batch import
feature-requesthelp wanted

仓库指标

星标
 (10,341 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南