From 6df9516e98c376f7e80132dbde3c540e3caf1f5a Mon Sep 17 00:00:00 2001 From: "Sachin D. Shinde" Date: Tue, 25 May 2021 14:59:54 -0700 Subject: [PATCH] Remove check in ensurePluginInstantiation() that throws when using schema reporting with gateways --- packages/apollo-server-core/src/ApolloServer.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/apollo-server-core/src/ApolloServer.ts b/packages/apollo-server-core/src/ApolloServer.ts index 324493d357a..22389130e61 100644 --- a/packages/apollo-server-core/src/ApolloServer.ts +++ b/packages/apollo-server-core/src/ApolloServer.ts @@ -1227,18 +1227,6 @@ export class ApolloServerBase { const enabledViaLegacyOption = typeof engine === 'object' && (engine.reportSchema || engine.experimental_schemaReporting); - if (alreadyHavePlugin || enabledViaEnvVar || enabledViaLegacyOption) { - if (this.config.gateway) { - throw new Error( - [ - "Schema reporting is not yet compatible with the gateway. If you're", - 'interested in using schema reporting with the gateway, please', - 'contact Apollo support. To set up managed federation, see', - 'https://go.apollo.dev/s/managed-federation', - ].join(' '), - ); - } - } if (alreadyHavePlugin) { if (engine !== undefined) { throw Error(