From dd182a5b9589eee60297510c105dbc57b5e27ecd Mon Sep 17 00:00:00 2001 From: Laurens Kling Date: Tue, 22 Oct 2024 16:33:50 +0200 Subject: [PATCH] Update upgrade-to-apollov4.md (#2271) add apolloServer key --- .../migration/v4-to-v5/breaking-changes/upgrade-to-apollov4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/dev-docs/migration/v4-to-v5/breaking-changes/upgrade-to-apollov4.md b/docusaurus/docs/dev-docs/migration/v4-to-v5/breaking-changes/upgrade-to-apollov4.md index 9a32229282..ac3affe578 100644 --- a/docusaurus/docs/dev-docs/migration/v4-to-v5/breaking-changes/upgrade-to-apollov4.md +++ b/docusaurus/docs/dev-docs/migration/v4-to-v5/breaking-changes/upgrade-to-apollov4.md @@ -61,7 +61,7 @@ Apollo Server v4 for the GraphQL server and graphql ^16 for the GraphQL module. To migrate to Strapi 5: -- Set the `x-apollo-operation-name` header or disable the new protection by adding `csrfPrevention: false` to the GraphQL plugin configuration for multipart messages (file uploads). +- Set the `x-apollo-operation-name` header or disable the new protection by adding `csrfPrevention: false` to apolloServer in the GraphQL plugin configuration for multipart messages (file uploads). - Replace `ApolloError` with `GraphQLError`. - Remove root level configuration options like `formatResponse` and replace them with plugin hooks in the plugins array. - Remove the modules configuration option and split it into `typeDefs` and `resolvers`.