Skip to content

Commit

Permalink
Remove check in ensurePluginInstantiation() that throws when using sc…
Browse files Browse the repository at this point in the history
…hema reporting with gateways
  • Loading branch information
sachindshinde committed Jun 22, 2021
1 parent 701d482 commit 6df9516
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/apollo-server-core/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6df9516

Please sign in to comment.