-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make server.start() required for non-serverless frameworks (#5195)
AS v2.22 introduced the method `server.start()` which could be awaited immediately after `new ApolloServer()` in order to catch startup errors (for example, errors loading schema from gateway). This method exists only for non-serverless framework integrations. For `apollo-server` its semantics are integrated into `server.listen()` and for serverless frameworks you typically must set up the handler synchronously. In AS2 this method was optional. This PR makes the method required. So instead of the framework integration kicking off a `start` in the background if you don't do it yourself, it just throws an error telling you to call start. Fixes #5050.
- Loading branch information
Showing
31 changed files
with
267 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.