dotansimha/graphql-code-generator

[client-preset] allowed options and defaults

Open

#8,562 opened on Nov 2, 2022

View on 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
 (Avg merge 46d 1h) (11 merged PRs in 30d)

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