#GraphQL Subscription and AsyncIterator issue: method called multiple times

2 messages · Page 1 of 1 (latest)

wet leaf
#

For your information, here are the configuration:

GraphQL Module:

GraphQLModule.forRoot<ApolloDriverConfig>({
  subscriptions: {
    'graphql-ws': {
      path: '/subscriptions',
    },
  },
});

In-Memory PubSub Service:

import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
import { PubSub } from 'graphql-subscriptions';

@Injectable()
export class InMemoryPubSubService extends PubSub implements OnModuleInit {
  private readonly logger = new Logger(InMemoryPubSubService.name);
...
}
#

GraphQL Subscription and AsyncIterator issue: method called multiple times