Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw error in applyMiddleware for vanilla apollo-server #1345

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

evans
Copy link
Contributor

@evans evans commented Jul 13, 2018

applyMiddleware is not a public api for apollo-server, so it should not be used an direct people to the apollo-server-express integration.

@evans evans added this to the Release 2.0 milestone Jul 13, 2018
// Listen takes the same arguments as http.Server.listen.
public async listen(...opts: Array<any>): Promise<ServerInfo> {
// This class is the easy mode for people who don't create their own express
// object, so we have to create it.
const app = express();

// provide generous values for the getting started experience
this.applyMiddleware({
super.applyMiddleware({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this calling super?

@evans evans merged commit 8b0c9c3 into version-2 Jul 13, 2018
@evans evans deleted the server-2.0/error-applyMiddleware branch July 13, 2018 17:50
evans added a commit that referenced this pull request Jul 13, 2018
applyMiddleware is not a public api for apollo-server, so it should not
be used an direct people to the apollo-server-express integration.
@evans
Copy link
Contributor Author

evans commented Jul 13, 2018

Change the commit message to include PR name + description

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants