diff --git a/.changeset/wise-ducks-give.md b/.changeset/wise-ducks-give.md new file mode 100644 index 00000000000..0d6bbaf3527 --- /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 f978fc608dd..1bd28d40766 100644 --- a/packages/presets/client/src/index.ts +++ b/packages/presets/client/src/index.ts @@ -125,6 +125,7 @@ export const preset: Types.OutputPreset = { useTypeImports: options.config.useTypeImports, skipTypename: options.config.skipTypename, arrayInputCoercion: options.config.arrayInputCoercion, + enumsAsConst: options.config.enumsAsConst, enumsAsTypes: options.config.enumsAsTypes, futureProofEnums: options.config.futureProofEnums, dedupeFragments: options.config.dedupeFragments,