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

貢獻者指南