Skip to content

Commit

Permalink
docs(apollo-federation): explain multigraph use-case
Browse files Browse the repository at this point in the history
  • Loading branch information
Elies Lou committed Feb 10, 2022
1 parent 376616a commit 0528381
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/apollo/tests/code-first-multigraph/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './app.module';
import { GatewayModule } from './gateway.module';

/**
* This use case comes from the need for an application
* to be designed in a way which would allow future context
* separation from a deployment point of view.
*/
export async function bootstrap() {
const app = await NestFactory.create(ApplicationModule);
app.useGlobalPipes(new ValidationPipe());
Expand Down

0 comments on commit 0528381

Please sign in to comment.