Skip to content

Commit 7700c07

Browse files
replace @apollo/server/express4 with @as-integrations/express (Express 5 support)
1 parent 3f55df0 commit 7700c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/8/en/part8e.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ Unfortunately, startStandaloneServer does not allow adding subscriptions to the
351351
Let us install Express
352352

353353
```bash
354-
npm install express cors
354+
npm install express cors @as-integrations/express5
355355
```
356356

357357
and the file <i>index.js</i> changes to:
358358

359359
```js
360360
const { ApolloServer } = require('@apollo/server')
361361
// highlight-start
362-
const { expressMiddleware } = require('@apollo/server/express4')
362+
const { expressMiddleware } = require('@as-integrations/express5')
363363
const { ApolloServerPluginDrainHttpServer } = require('@apollo/server/plugin/drainHttpServer')
364364
const { makeExecutableSchema } = require('@graphql-tools/schema')
365365
const express = require('express')

0 commit comments

Comments
 (0)