graphql/yoga-server/docs/integrations/integration-with-nestjs #2298
Replies: 2 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.
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? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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