Skip to content

Commit dd182a5

Browse files
authored
Update upgrade-to-apollov4.md (#2271)
add apolloServer key
1 parent a1f4015 commit dd182a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus/docs/dev-docs/migration/v4-to-v5/breaking-changes/upgrade-to-apollov4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Apollo Server v4 for the GraphQL server and graphql ^16 for the GraphQL module.
6161

6262
To migrate to Strapi 5:
6363

64-
- 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).
64+
- 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).
6565
- Replace `ApolloError` with `GraphQLError`.
6666
- Remove root level configuration options like `formatResponse` and replace them with plugin hooks in the plugins array.
6767
- Remove the modules configuration option and split it into `typeDefs` and `resolvers`.

0 commit comments

Comments
 (0)