diff --git a/src/content/8/en/part8e.md b/src/content/8/en/part8e.md index e479552243..eedb6f9117 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') }, }, ``` diff --git a/src/content/8/es/part8e.md b/src/content/8/es/part8e.md index 6399ac9803..21522db6b4 100644 --- a/src/content/8/es/part8e.md +++ b/src/content/8/es/part8e.md @@ -183,7 +183,7 @@ const pubsub = new PubSub() // highlight-line // highlight-start Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator(['PERSON_ADDED']) + subscribe: () => pubsub.asyncIterableIterator(['PERSON_ADDED']) }, }, // highlight-end diff --git a/src/content/8/fi/osa8e.md b/src/content/8/fi/osa8e.md index 5e6021806d..6056335b7e 100644 --- a/src/content/8/fi/osa8e.md +++ b/src/content/8/fi/osa8e.md @@ -588,7 +588,7 @@ const resolvers = { // highlight-start Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator('PERSON_ADDED') + subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED') }, }, // highlight-end @@ -608,7 +608,7 @@ Koodia on vähän mutta konepellin alla tapahtuu paljon. Tilauksen _personAdded_ ```js Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator('PERSON_ADDED') + subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED') }, }, ``` diff --git a/src/content/8/zh/part8e.md b/src/content/8/zh/part8e.md index d0cc73b458..ea07677a3f 100644 --- a/src/content/8/zh/part8e.md +++ b/src/content/8/zh/part8e.md @@ -549,7 +549,7 @@ const pubsub = new PubSub() // highlight-line // highlight-start Subscription: { personAdded: { - subscribe: () => pubsub.asyncIterator(['PERSON_ADDED']) + subscribe: () => pubsub.asyncIterableIterator(['PERSON_ADDED']) }, }, // highlight-end