Spec-compliant GraphQL server for Node.js, standalone or as Express middleware
open sourceMITfree
Apollo Server is Apollo Graph's open source, spec-compliant GraphQL server for TypeScript and JavaScript on Node.js. It works with any GraphQL client, including Apollo Client, and any data source. You can run it as a stand-alone GraphQL server, as the server for a subgraph in a federated supergraph, or as the gateway for a federated supergraph. The @apollo/server package ships a minimally configurable standalone web server that handles CORS and body parsing, and an API for integrating with any Node.js web framework or serverless environment; the Express integration is published separately as @as-integrations/express5. Opening a running server in a browser shows Apollo Sandbox for running GraphQL operations. Since Apollo Server 4 the package is @apollo/server; earlier versions used package names starting with apollo-server.
Problems it solves
- build a GraphQL API in Node.js with TypeScript that any client can query
- add a GraphQL endpoint to my existing Express app
- run a subgraph or gateway for a federated GraphQL supergraph
Features
- Spec-compliant GraphQL server that works with any GraphQL client
- Standalone web server with CORS and body parsing built in
- Express middleware through @as-integrations/express5
- Runs as a stand-alone server, a federated subgraph or a federation gateway
- Apollo Sandbox in the browser for running GraphQL operations
Limitations
- Integrations with Node.js frameworks and serverless environments other than its standalone server are community-maintained1
Alternatives
The same job
These do what Apollo Server does.
- GraphQL.js The JavaScript reference implementation of GraphQL: build a schema and execute queries against it
