diff --git a/src/content/8/en/part8e.md b/src/content/8/en/part8e.md index e4795522436..a86d8fd9834 100644 --- a/src/content/8/en/part8e.md +++ b/src/content/8/en/part8e.md @@ -464,7 +464,7 @@ The file index.js is changed to: ```js // highlight-start const { WebSocketServer } = require('ws') -const { useServer } = require('graphql-ws/lib/use/ws') +const { useServer } = require('graphql-ws/use/ws') // highlight-end // ... @@ -589,7 +589,7 @@ const resolvers = { // highlight-start Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator('PERSON_ADDED') + subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED') }, }, // highlight-end