Skip to content

Commit

Permalink
updates error when schema reporting is used with federation (#4567)
Browse files Browse the repository at this point in the history
it's helpful to have an actionable message when something goes wrong
aside from a simple "contact support" if there is a way to achieve
the action that caused the error. in this case, the user is likely
trying to set up Apollo Studio with their service, which they can do
if they follow along with the documentation. this change adds a link
to said documentation to immediately unblock users who run into this
error.
  • Loading branch information
EverlastingBugstopper authored and glasser committed Sep 18, 2020
1 parent 73619f6 commit ae8efe3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/apollo-server-core/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,8 @@ export class ApolloServerBase {
[
'Schema reporting is not yet compatible with federated services.',
"If you're interested in using schema reporting with federated",
'services, please contact Apollo support.',
'services, please contact Apollo support. To set up managed federation, see',
'https://www.apollographql.com/docs/studio/managed-federation/setup/'
].join(' '),
);
}
Expand All @@ -837,7 +838,8 @@ export class ApolloServerBase {
[
"Schema reporting is not yet compatible with the gateway. If you're",
'interested in using schema reporting with the gateway, please',
'contact Apollo support.',
'contact Apollo support. To set up managed federation, see',
'https://www.apollographql.com/docs/studio/managed-federation/setup/'
].join(' '),
);
}
Expand Down

0 comments on commit ae8efe3

Please sign in to comment.