Apollo Server
Backend / API library · Free
A Node.js GraphQL server library: it connects schemas, resolvers, and HTTP hosting to build application APIs.
Also known as: apollographql/apollo-server; apollo-server; apollo-graphql-server

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Create a GraphQL API for a Node.js backend
- Connect the server to the HTTP environment and test a query and mutation
Example workflow
A possible workflow; this is not a report of hands-on testing.
Create a GraphQL API for a Node.js backend.
Before you start
- A data contract or HTTP workflow.
- A project with a supported runtime.
Steps
- Define the schema and resolvers for the selected entities.
- Connect the server to the HTTP environment and test a query and mutation.
- Add error handling and an integration check of the result.
Check your result
- Invalid and missing data are handled predictably.
- Types and the actual response agree; errors are not hidden.
Choosing Apollo Server
Create a GraphQL API for a Node.js backend
Choose this when
- Create a GraphQL API for a Node.js backend
- Connect the server to the HTTP environment and test a query and mutation
Requirements
- A Node.js environment, GraphQL schema, and resolvers; choose a standalone helper or HTTP integration.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
Frequently asked questions
What can you use for free in Apollo Server?
Code and local use under MIT.
What additional costs might arise with Apollo Server?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Apollo Server?
MIT for the code; dependencies have separate licenses.
How do you get started with Apollo Server?
Define the schema and resolvers for the selected entities. Connect the server to the HTTP environment and test a query and mutation. Add error handling and an integration check of the result.
When should a standalone server be replaced with HTTP integration?
The standalone helper simplifies startup and handles CORS and body parsing itself, but offers limited HTTP customization. For custom middleware and HTTP-layer control, the README points to framework integration; verify its support and settings separately.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Apollo Server
- API
- Development