graphql/yoga-server/docs/integrations/integration-with-nestjs #2298
Replies: 3 comments 3 replies
-
You can also try to use this library https://github.com/Adrinalin4ik/Nestjs-Graphql-Tools in addition to this. This library allows to overcome n+1 problem, providing decorators for building sorting, filters in depth and pagination functionality. |
Beta Was this translation helpful? Give feedback.
-
In NestJS documentation, they build a gateway and compose multiple graphql server into one using this GraphQLModule.forRoot<ApolloGatewayDriverConfig>({
driver: ApolloGatewayDriver,
server: {
// ... Apollo server options
cors: true,
},
gateway: {
supergraphSdl: new IntrospectAndCompose({
subgraphs: [
{ name: 'users', url: 'http://user-service/graphql' },
{ name: 'posts', url: 'http://post-service/graphql' },
],
}),
},
}), I currently using YogaFederationDriver, how can I achieve that? |
Beta Was this translation helpful? Give feedback.
-
Hello, is it possible to enable subscriptions on the gateway? I can't find any documentation on this topic. |
Beta Was this translation helpful? Give feedback.
-
graphql/yoga-server/docs/integrations/integration-with-nestjs
GraphQL Yoga Documentation
https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nestjs
Beta Was this translation helpful? Give feedback.
All reactions