This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const superGraphSchema = await this.supergraphManager.getSupergraph(); | |
if (!this.supergraphManager.checkSupergraph(superGraphSchema)) { | |
this.supergraphManager.setActualSupergraph(superGraphSchema); | |
await this.server.stop(); | |
this.startServer(superGraphSchema.toString()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.gateway = new ApolloGateway({ supergraphSdl: supergraph }); | |
this.server = new ApolloServer({ gateway: this.gateway }); | |
this.server.listen({ port: port }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { runServer } from '@monorepo-ws/server'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.gateway = new ApolloGateway({ supergraphSdl: supergraph }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gateway = new ApolloGateway({ | |
servicesList: [ | |
{ name: 'users', url: 'http://localhost:8080/graphql' }, | |
{ name: 'articles', url: 'http://localhost:9000/graphql' } | |
] | |
}) |