dotansimha/graphql-code-generator

[client-preset] allowed options and defaults

Open

#8.562 geöffnet am 2. Nov. 2022

Auf GitHub ansehen
 (43 Kommentare) (9 Reaktionen) (1 zugewiesene Person)TypeScript (1.295 Forks)batch import
feature-requesthelp wanted

Repository-Metriken

Stars
 (10.341 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 9h) (53 gemergte PRs in 30 T)

Beschreibung

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