diff --git a/src/content/8/en/part8e.md b/src/content/8/en/part8e.md index 3c610469af..e88a6cd585 100644 --- a/src/content/8/en/part8e.md +++ b/src/content/8/en/part8e.md @@ -589,7 +589,7 @@ const resolvers = { // highlight-start Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator('PERSON_ADDED') + subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED') }, }, // highlight-end @@ -610,7 +610,7 @@ There are only a few lines of code added, but quite a lot is happening under the ```js Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator('PERSON_ADDED') + subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED') }, }, ```