Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-land "Expose composed middleware via getMiddleware()" (#3047)
* Re-land "Expose composed middleware via getMiddleware()" This reverts commit d05aceb which was originally #2435, but was reverted in 52ab22e (#3046) as a precaution, prior to releasing 2.7.0. This attempts to reland it. * Use an `express.Router` rather than `compose-middleware`. Aside from avoiding unnecessary dependencies, by using this Router, we avoid the `apollo-server` base package from behaving different than it has in the past. Specifically, `apollo-server` uses `/` as the default path, but it does so in a wild-card way which serves GraphQL requests on _any_ path. That means that `/graphqlllll` and `/graphql` both also served the GraphQL Playground interface, and also responded to GraphQL execution requests. Since some may be leveraging that behavior, we should preserve it, if we can. * Add CHANGELOG.md link to #3184, for awareness.
- Loading branch information