I have two graphql endpoints setup like:
@Module({
imports: [
GraphQLModule.forRootAsync<ApolloDriverConfig>({
inject: [ConfigService],
driver: ApolloDriver,
useFactory: firstGqlProviderFactory,
}),
GraphQLModule.forRootAsync<ApolloDriverConfig>({
inject: [ConfigService],
driver: ApolloDriver,
useFactory: secondGqlProviderFactory,
}),
],
})
export class GqlModule {
}
With this I can only retrieve one of the instances using getApolloServer(app).
Are there any options to get instances separately other than running 2 nestjs apps per graphql endpoint?