{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ca9790f2fe5dffaebad9a9cfb938b593658e1e1a","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-3.1.1.tgz","fileCount":19,"integrity":"sha512-W6VDth39mv1SCaJjnTwc0OmXIWzpELAJ3+/Id4cw+99HXdeRMJXDN5lbMENYEu+1a+pUK8iOoctwlJbikwBPGA==","signatures":[{"sig":"MEYCIQDC0PdXbwcPuVp8k5UW4aOtMDviMb4y0tt20Hs45sr28QIhAOaxeRKD3C6N6xZjqPb0MK9QdLQe8kbZ5bOSDv+/1KBc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/xJBCRA9TVsSAnZWagAAwcUP/1yL0LVZNssNOYVQTwlo\nrc1XMJPcLHhZFSBfrQjOt2+WK13CrhIyC5zbbsSBdBI0oVWMLCVYUwHuWhD+\npDWORp3Ip+H8+ZBAfDySyibJllbuutpZOxdHBVYjH6cyHPXJTz54ClzRFWXi\nDIj0X6oR9GiDnErBStg8XOLFVE0N5xniRjMdHMC7ufvfwBxaODpjm8QpPxXn\nR7af57UMRBwFMTX5rcAFW3cWakbl45JJ+SegKwLOODQ3VbpxNMWSyYszXsXd\nFOVk1C1ZEQZV+yviCOxco64mCs+FY/TUcxS6Zqgd3DG4+gltOWn1ym/E32rM\nWvwQponZwwCYs1ulE45stVHSs3p/zF4I96V/MrPcnZtej26rEahWtc5/FZCK\n3F0+eSJNe3agkymGEuNwBxueiDNwdop21xZBcwDKiDjA6DLrRTZyLYGKogkN\nFc7AXaIy1Ycze2PmvE3qr6XktBqmKl6GrQSqQ2EV5zJF5s5cdxMkx/iS/xoN\nh+xuMYeiLKFQh7Rnvqua6MIN4GqeprVc7ww+ohhr8o6bfTaY7CUgGc7Fm5X+\nc8m+XwP6iCfn1IWMs/1LbGCJpi9os4PKtMLwsex9S7aKwu4uEfqvp+q+YQjd\ng+pmfXnDYyeQVwhSnYi0BLNGEGFU5LuML9TKP5AbGE3lE3NqZhQB8i1MdTwK\ngAzr\r\n=Qnx9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-express","types":"dist/index.d.ts","author":{"name":"Apollo","email":"opensource@apollographql.com"},"readme":"[![npm version](https://badge.fury.io/js/apollo-server-express.svg)](https://badge.fury.io/js/apollo-server-express)\n[![Build Status](https://circleci.com/gh/apollographql/apollo-server/tree/main.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-server)\n[![Join the community forum](https://img.shields.io/badge/join%20the%20community-forum-blueviolet)](https://community.apollographql.com)\n[![Read CHANGELOG](https://img.shields.io/badge/read-changelog-blue)](https://github.com/apollographql/apollo-server/blob/HEAD/CHANGELOG.md)\n\n\nThis 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)\n\n```shell\nnpm install apollo-server-express graphql\n```\n\n## Express\n\n```js\nconst express = require('express');\nconst { ApolloServer, gql } = require('apollo-server-express');\n\nasync function startApolloServer() {\n  // Construct a schema, using GraphQL schema language\n  const typeDefs = gql`\n    type Query {\n      hello: String\n    }\n  `;\n\n  // Provide resolver functions for your schema fields\n  const resolvers = {\n    Query: {\n      hello: () => 'Hello world!',\n    },\n  };\n\n  const server = new ApolloServer({ typeDefs, resolvers });\n  await server.start();\n\n  const app = express();\n  server.applyMiddleware({ app });\n\n  await new Promise(resolve => app.listen({ port: 4000 }, resolve));\n  console.log(`🚀 Server ready at http://localhost:4000${server.graphqlPath}`);\n  return { server, app };\n}\n```\n\n## Connect\n\nBefore 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.\n\n## Principles\n\nGraphQL Server is built with the following principles in mind:\n\n* **By the community, for the community**: GraphQL Server's development is driven by the needs of developers\n* **Simplicity**: by keeping things simple, GraphQL Server is easier to use, easier to contribute to, and more secure\n* **Performance**: GraphQL Server is well-tested and production-ready - no modifications needed\n\nAnyone 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!\n","engines":{"node":">=12.0"},"gitHead":"eb06724ca43042fcbf6e04e1de1dc2e5acfadf33","license":"MIT","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"homepage":"https://github.com/apollographql/apollo-server#readme","keywords":["GraphQL","Apollo","Server","Express","Javascript"],"deprecated":"The `apollo-server-express` package is part of Apollo Server v2 and v3, which are now end-of-life (as of October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.","repository":{"url":"git+https://github.com/apollographql/apollo-server.git","type":"git","directory":"packages/apollo-server-express"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Express","directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_nodeVersion":"12.22.3","dependencies":{"cors":"^2.8.5","accepts":"^1.3.5","parseurl":"^1.3.3","@types/cors":"2.8.12","body-parser":"^1.19.0","@types/accepts":"^1.3.5","@types/express":"4.17.13","@types/body-parser":"1.19.1","apollo-server-core":"^3.1.1","apollo-server-types":"^3.1.1","@types/express-serve-static-core":"4.17.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.1.1"},"peerDependencies":{"express":"^4.17.1","graphql":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_3.1.1_1627329089584_0.7907085524333821","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@3.1.1","version":"3.1.1"}