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

Exported Express/Connect Middleware #1907

Closed
wants to merge 10 commits into from
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ the query extensions' `clientInfo` values will be used. [PR #1960](https://githu
- Azure functions support [Issue #1752](https://github.com/apollographql/apollo-server/issue/1752) [PR #1753](https://github.com/apollographql/apollo-server/pull/1753) [PR #1948](https://github.com/apollographql/apollo-server/pull/1948)
- Allow JSON parsing in `RESTDataSource` of Content Type `application/hal+json`. [PR #185](https://github.com/apollographql/apollo-server/pull/1853)
- Add support for a `requestAgent` configuration parameter within the `engine` configuration. This can be utilized when a proxy is necessary to transmit tracing and metrics data to Apollo Engine. It accepts either an [`http.Agent`](https://nodejs.org/docs/latest-v8.x/api/http.html#http_class_http_agent) or [`https.Agent`](https://nodejs.org/docs/latest-v8.x/api/https.html#https_class_https_agent) and behaves the same as the `agent` parameter to Node.js' [`http.request`](https://nodejs.org/docs/latest-v8.x/api/http.html#http_http_request_options_callback). [PR #1879](https://github.com/apollographql/apollo-server/pull/1879)
- Exposed `graphqlExpress`, `ExpressGraphQLOptionsFunction`, and `graphqlConnect` from `apollo-server-express`. [PR #1907](https://github.com/apollographql/apollo-server/pull/1907)

### v2.1.0

Expand Down
6 changes: 6 additions & 0 deletions packages/apollo-server-express/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@ export {
ApolloServerExpressConfig,
} from './ApolloServer';

// Express middleware
export * from './expressApollo';

// Connect middleware.
export * from './connectApollo';

export { CorsOptions } from 'cors';
export { OptionsJson } from 'body-parser';