graphql/yoga-server/docs/integrations/integration-with-nestjs #2298
Replies: 3 comments 4 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. |
2 replies
|
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? |
1 reply
|
Hello, is it possible to enable subscriptions on the gateway? I can't find any documentation on this topic. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
graphql/yoga-server/docs/integrations/integration-with-nestjs
GraphQL Yoga Documentation
https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nestjs
All reactions