diff --git a/.changeset/wise-ducks-give.md b/.changeset/wise-ducks-give.md new file mode 100644 index 000000000000..0d6bbaf3527d --- /dev/null +++ b/.changeset/wise-ducks-give.md @@ -0,0 +1,5 @@ +--- +'@graphql-codegen/client-preset': minor +--- + +Allow use of enumsAsConst config option diff --git a/packages/presets/client/src/index.ts b/packages/presets/client/src/index.ts index 1eb9259c7941..6c4ee208f500 100644 --- a/packages/presets/client/src/index.ts +++ b/packages/presets/client/src/index.ts @@ -126,6 +126,7 @@ export const preset: Types.OutputPreset = { skipTypename: options.config.skipTypename, arrayInputCoercion: options.config.arrayInputCoercion, enumsAsTypes: options.config.enumsAsTypes, + enumsAsConst: options.config.enumsAsConst, dedupeFragments: options.config.dedupeFragments, nonOptionalTypename: options.config.nonOptionalTypename, avoidOptionals: options.config.avoidOptionals,