dotansimha/graphql-code-generator

[client-preset] allowed options and defaults

Open

#8562 opened on Nov 2, 2022

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

Description

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

Contributor guide