Apollo Server is a community-maintained open-source GraphQL server that works with many Node.js HTTP server frameworks or can run standalone. Version 3.13.0 is the final stable release of this package, which has since been superseded by the `@apollo/server` package (v4+). Active development and new features are now released under the `@apollo/server` package, which follows a rapid release cadence.
npm install apollo-serverVerified import paths — ran on the pinned version, not inferred.
Basic Apollo Server setup with a 'hello world' GraphQL query that starts a standalone server.
Migrate your application to use `@apollo/server`. Refer to the official Apollo Server migration guide for details.
Install a compatible version of `graphql`: `npm install graphql@^16.0.0` or `npm install graphql@^15.3.0`.
Refactor your project to use ES modules. For example, change `const { ApolloServer } = require('apollo-server');` to `import { ApolloServer } from '@apollo/server';` and ensure your `package.json` specifies `"type": "module"`.Ensure you are importing the correct package for your module system. If using `apollo-server` v3, ensure you're using compatible CJS/ESM. If migrating to `@apollo/server` v4+, update your project to use ESM `import` statements.
Run `npm install graphql` to add the necessary peer dependency.
Carefully review your `gql` template literal for any syntax errors in your schema definition (e.g., missing curly braces, incorrect type names, etc.).
No dependency data recorded yet.