From 0528381b86e672b6866eb1e78deb925e536b0d41 Mon Sep 17 00:00:00 2001 From: Elies Lou Date: Thu, 10 Feb 2022 14:08:09 +0100 Subject: [PATCH] docs(apollo-federation): explain multigraph use-case --- packages/apollo/tests/code-first-multigraph/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/apollo/tests/code-first-multigraph/main.ts b/packages/apollo/tests/code-first-multigraph/main.ts index 79a50808ac..c73dd67a52 100644 --- a/packages/apollo/tests/code-first-multigraph/main.ts +++ b/packages/apollo/tests/code-first-multigraph/main.ts @@ -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());