diff --git a/packages/apollo/tests/code-first/recipes/recipes.resolver.ts b/packages/apollo/tests/code-first/recipes/recipes.resolver.ts index 80b140cfd..4f159592c 100644 --- a/packages/apollo/tests/code-first/recipes/recipes.resolver.ts +++ b/packages/apollo/tests/code-first/recipes/recipes.resolver.ts @@ -95,6 +95,6 @@ export class RecipesResolver { description: 'subscription description', }) recipeAdded() { - return pubSub.asyncIterator('recipeAdded'); + return pubSub.asyncIterableIterator('recipeAdded'); } } diff --git a/packages/apollo/tests/graphql/cats/cats.resolvers.ts b/packages/apollo/tests/graphql/cats/cats.resolvers.ts index efd7acbf5..1761d6b1e 100644 --- a/packages/apollo/tests/graphql/cats/cats.resolvers.ts +++ b/packages/apollo/tests/graphql/cats/cats.resolvers.ts @@ -51,6 +51,6 @@ export class CatsResolvers { @Subscription('catCreated') catCreated() { - return pubSub.asyncIterator('catCreated'); + return pubSub.asyncIterableIterator('catCreated'); } } diff --git a/packages/apollo/tests/subscriptions/app/notification.resolver.ts b/packages/apollo/tests/subscriptions/app/notification.resolver.ts index 419ba562f..89516953b 100644 --- a/packages/apollo/tests/subscriptions/app/notification.resolver.ts +++ b/packages/apollo/tests/subscriptions/app/notification.resolver.ts @@ -33,6 +33,6 @@ export class NotificationResolver { id: string, ) { this.logger.log('User subscribed to newNotification'); - return pubSub.asyncIterator('newNotification'); + return pubSub.asyncIterableIterator('newNotification'); } } diff --git a/packages/graphql/tests/plugin/fixtures/project/recipes/recipes.resolver.ts b/packages/graphql/tests/plugin/fixtures/project/recipes/recipes.resolver.ts index 040ea084b..5a0e855b6 100644 --- a/packages/graphql/tests/plugin/fixtures/project/recipes/recipes.resolver.ts +++ b/packages/graphql/tests/plugin/fixtures/project/recipes/recipes.resolver.ts @@ -47,6 +47,6 @@ export class RecipesResolver { @Subscription((returns) => Recipe) recipeAdded() { - return pubSub.asyncIterator('recipeAdded'); + return pubSub.asyncIterableIterator('recipeAdded'); } } diff --git a/packages/mercurius/tests/code-first/recipes/recipes.resolver.ts b/packages/mercurius/tests/code-first/recipes/recipes.resolver.ts index 7a5432127..7097437c4 100644 --- a/packages/mercurius/tests/code-first/recipes/recipes.resolver.ts +++ b/packages/mercurius/tests/code-first/recipes/recipes.resolver.ts @@ -94,6 +94,6 @@ export class RecipesResolver { description: 'subscription description', }) recipeAdded() { - return pubSub.asyncIterator('recipeAdded'); + return pubSub.asyncIterableIterator('recipeAdded'); } } diff --git a/packages/mercurius/tests/graphql/cats/cats.resolvers.ts b/packages/mercurius/tests/graphql/cats/cats.resolvers.ts index efd7acbf5..1761d6b1e 100644 --- a/packages/mercurius/tests/graphql/cats/cats.resolvers.ts +++ b/packages/mercurius/tests/graphql/cats/cats.resolvers.ts @@ -51,6 +51,6 @@ export class CatsResolvers { @Subscription('catCreated') catCreated() { - return pubSub.asyncIterator('catCreated'); + return pubSub.asyncIterableIterator('catCreated'); } }