Skip to content

Commit fb35d6d

Browse files
committed
asyncIterator method returning graphQL error; switched to asyncIterableIterator method per resource suggestions
1 parent d94bec0 commit fb35d6d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/content/8/en/part8e.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ const resolvers = {
589589
// highlight-start
590590
Subscription: {
591591
personAdded: {
592-
subscribe: () => pubsub.asyncIterator('PERSON_ADDED')
592+
subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED')
593593
},
594594
},
595595
// highlight-end
@@ -610,7 +610,7 @@ There are only a few lines of code added, but quite a lot is happening under the
610610
```js
611611
Subscription: {
612612
personAdded: {
613-
subscribe: () => pubsub.asyncIterator('PERSON_ADDED')
613+
subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED')
614614
},
615615
},
616616
```

src/content/8/es/part8e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const pubsub = new PubSub() // highlight-line
183183
// highlight-start
184184
Subscription: {
185185
personAdded: {
186-
subscribe: () => pubsub.asyncIterator(['PERSON_ADDED'])
186+
subscribe: () => pubsub.asyncIterableIterator(['PERSON_ADDED'])
187187
},
188188
},
189189
// highlight-end

src/content/8/fi/osa8e.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ const resolvers = {
588588
// highlight-start
589589
Subscription: {
590590
personAdded: {
591-
subscribe: () => pubsub.asyncIterator('PERSON_ADDED')
591+
subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED')
592592
},
593593
},
594594
// highlight-end
@@ -608,7 +608,7 @@ Koodia on vähän mutta konepellin alla tapahtuu paljon. Tilauksen _personAdded_
608608
```js
609609
Subscription: {
610610
personAdded: {
611-
subscribe: () => pubsub.asyncIterator('PERSON_ADDED')
611+
subscribe: () => pubsub.asyncIterableIterator('PERSON_ADDED')
612612
},
613613
},
614614
```

src/content/8/zh/part8e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ const pubsub = new PubSub() // highlight-line
549549
// highlight-start
550550
Subscription: {
551551
personAdded: {
552-
subscribe: () => pubsub.asyncIterator(['PERSON_ADDED'])
552+
subscribe: () => pubsub.asyncIterableIterator(['PERSON_ADDED'])
553553
},
554554
},
555555
// highlight-end

0 commit comments

Comments
 (0)