diff --git a/docs/source/data/fragments.mdx b/docs/source/data/fragments.mdx index ee6ccd596f0..aabdceed714 100644 --- a/docs/source/data/fragments.mdx +++ b/docs/source/data/fragments.mdx @@ -1135,7 +1135,7 @@ const config: CodegenConfig = { ##### With the `client-preset` -Support for the `@unmask` directive was introduced with `@graphql-codegen/client-preset` [v4.5.1](https://github.com/dotansimha/graphql-code-generator/releases/tag/release-1732308151614) +Support for the `@unmask` directive was introduced with `@graphql-codegen/client-preset` [v4.6.0](https://github.com/dotansimha/graphql-code-generator/releases/tag/release-1732308151614) You can't use the `client-preset` [Fragment Masking](https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#fragment-masking) and Apollo Client's data masking features simultaneously. @@ -1157,11 +1157,11 @@ To migrate from CodeGen's fragment masking feature to Apollo Client's data maski // ... // disables the incompatible GraphQL Codegen fragment masking feature fragmentMasking: false, + }, + config: { customDirectives: { apolloUnmask: true } - }, - config: { inlineFragmentTypes: "mask", } }