# apollo-server-express

> Production-ready Node.js GraphQL server for Express

Latest version **3.13.0** (published 2023-11-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install apollo-server-express
pnpm add apollo-server-express
yarn add apollo-server-express
bun add apollo-server-express
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.13.0 |
| Published | 2023-11-14 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.0 |
| Dependencies | 11 |
| Unpacked size | 27 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 13952 |
| Author | Apollo |
| Maintainers | apollo-bot |
| Keywords | GraphQL, Apollo, Server, Express, Javascript |

## Links

- npm: https://www.npmjs.com/package/apollo-server-express
- Repository: https://github.com/apollographql/apollo-server
- Homepage: https://github.com/apollographql/apollo-server#readme
- Issues: https://github.com/apollographql/apollo-server/issues
- npm.io page: https://npm.io/package/apollo-server-express

## Dependencies (11)

- [cors](https://npm.io/package/cors.md) ^2.8.5
- [accepts](https://npm.io/package/accepts.md) ^1.3.5
- [parseurl](https://npm.io/package/parseurl.md) ^1.3.3
- [@types/cors](https://npm.io/package/@types/cors.md) 2.8.12
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0
- [@types/accepts](https://npm.io/package/@types/accepts.md) ^1.3.5
- [@types/express](https://npm.io/package/@types/express.md) 4.17.14
- [@types/body-parser](https://npm.io/package/@types/body-parser.md) 1.19.2
- [apollo-server-core](https://npm.io/package/apollo-server-core.md) ^3.13.0
- [apollo-server-types](https://npm.io/package/apollo-server-types.md) ^3.8.0
- [@types/express-serve-static-core](https://npm.io/package/@types/express-serve-static-core.md) 4.17.31

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 3.13.0 (latest) — 2023-11-14
- 2.26.2 (v2) — 2023-08-30
- 3.6.0-alpha.1 (alpha) — 2021-12-28
- 3.2.0 (next) — 2021-08-23
- 3.0.0-rc.1 (rc) — 2021-07-02
- 3.0.0-preview.4 (preview) — 2021-06-30
- 3.0.0-html.2 (html) — 2021-05-25
- 3.0.0-lambda.0 (alphalambda) — 2021-05-13
- 2.23.1-unified2.3 (unified) — 2021-04-27
- 3.0.0-alpha.3 (next-v3) — 2020-08-12
- 3.12.1 — 2023-08-30
- 3.12.0 — 2023-03-02
- 3.11.1 — 2022-11-03
- 3.11.0 — 2022-11-02
- 3.10.4 — 2022-10-31
- … 299 more at https://npm.io/package/apollo-server-express/versions

## README

[![npm version](https://badge.fury.io/js/apollo-server-express.svg)](https://badge.fury.io/js/apollo-server-express)
[![Build Status](https://circleci.com/gh/apollographql/apollo-server/tree/main.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-server)
[![Join the community forum](https://img.shields.io/badge/join%20the%20community-forum-blueviolet)](https://community.apollographql.com)
[![Read CHANGELOG](https://img.shields.io/badge/read-changelog-blue)](https://github.com/apollographql/apollo-server/blob/HEAD/CHANGELOG.md)


This is the Express integration of Apollo Server. Apollo Server is a community-maintained open-source GraphQL server that works with many Node.js HTTP server frameworks. [Read the docs](https://www.apollographql.com/docs/apollo-server/). [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)


A full example of how to use `apollo-server-express` can be found in [the docs](https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-express).

Before Apollo Server 3, we officially supported using this package with `connect` as well. `connect` is an older framework that `express` evolved from. For now, we believe that this package is still compatible with `connect` and we even run tests against `connect`, but we may choose to break this compatibility at some point without a major version bump. If you rely on the ability to use Apollo Server with `connect`, you may wish to make your own integration.

## Principles

GraphQL Server is built with the following principles in mind:

* **By the community, for the community**: GraphQL Server's development is driven by the needs of developers
* **Simplicity**: by keeping things simple, GraphQL Server is easier to use, easier to contribute to, and more secure
* **Performance**: GraphQL Server is well-tested and production-ready - no modifications needed

Anyone is welcome to contribute to GraphQL Server, just read [CONTRIBUTING.md](https://github.com/apollographql/apollo-server/blob/main/CONTRIBUTING.md), take a look at the [roadmap](https://github.com/apollographql/apollo-server/blob/main/ROADMAP.md) and make your first PR!

---
_Source: https://npm.io/package/apollo-server-express · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
