{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"7cd010f7921356cd9b832032828aa0add36cb7ed","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-1.3.5.tgz","fileCount":17,"integrity":"sha512-/Q7973GCBL0WaFXpBeuwrRH/oWRBD1fTmoc/0wNBEVzQPXmYjMik938IhJZjCthaE0VFPKNjCpx9lcQELG8TuQ==","signatures":[{"sig":"MEYCIQDmIenKFxkGxHlMGU7JEfGF9LPBMuEiItducwOK6UKBeAIhALSrIecAIXd3g20X7dkISm06JG44ewcHUT0Q/pzn1UQL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa10O6CRA9TVsSAnZWagAAxfAP/0QUuVAFUpVIcJWt5eT9\n4M7nTinSEBm7UvmMGPC4g/psevSwRxJ/lkCU4zFthcWVoCo0PkaECDHy9uRM\nBqsxpJAV3uoCwZNtfKTIg0xKd+0coRg3ek+IkA29MpGbc4VX/mO1WrW3cSKq\n8DsYB0rjdzHwZZGP31N6gnZFtYagaeaR7DI87Giu0f7xfG+MUgaZOKEU9IFL\nTeDc9YBQurTrc56OoywisQ5r92pY/+QL+nYWxk7GJvZLyvXBCgvmCj5AYdtT\n+8op0Z3XP0YQjVNqbpD3v60NC7oWWbCic9mhwylHUmvSofcH3GctWr7HmXoN\nVvGxNDyTmZKnQaEijSmoWFad3WDhBb0vdmdRX883mnNNo+vuT+rZHKrOar4L\nlSPH9CGwa6Wdl5t4jo7uNtSWf3+aFQeBB2ZwhmAKviIxBoIiSkI8ehuHwmUg\nK6un8oDaaldkWqt9rO4AYeevzWJw3pFfVLrpWt0t5a0yDCAjw0liYTDaZIi3\nA7civMhT9WHrIkA8RoJWpjQ7krXAtrf4bConzVE6KswMGf7DAC8a2F54M0jQ\nZnFfzCQIsm3by+5iMPMvKoV/NUsiHlP9Xa35Ho2syWYhtmYXdKjP056VFVrg\nUEMTXeQ6EJJDST3jICO2TuDt78tu1/pXaanA8+D0oR5ogenw+QdxRL15DUok\niKFd\r\n=7VEG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-express","author":{"name":"Jonas Helfer","email":"jonas@helfer.email"},"readme":"---\ntitle: Express / Connect\ndescription: Setting up Apollo Server with Express.js or Connect\n---\n\n[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core) [![Build Status](https://circleci.com/gh/apollographql/apollo-cache-control-js.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-cache-control-js) [![Coverage Status](https://coveralls.io/repos/github/apollographql/apollo-server/badge.svg?branch=master)](https://coveralls.io/github/apollographql/apollo-server?branch=master) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/#slack)\n\nThis is the Express and Connect integration of GraphQL Server. Apollo Server is a community-maintained open-source GraphQL server that works with all Node.js HTTP server frameworks: Express, Connect, Hapi, Koa and Restify. [Read the docs](https://www.apollographql.com/docs/apollo-server/). [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)\n\n```sh\nnpm install apollo-server-express\n```\n\n## Express\n\n```js\nimport express from 'express';\nimport bodyParser from 'body-parser';\nimport { graphqlExpress } from 'apollo-server-express';\n\nconst myGraphQLSchema = // ... define or import your schema here!\nconst PORT = 3000;\n\nconst app = express();\n\n// bodyParser is needed just for POST.\napp.use('/graphql', bodyParser.json(), graphqlExpress({ schema: myGraphQLSchema }));\n\napp.listen(PORT);\n```\n\n## Connect\n\n```js\nimport connect from 'connect';\nimport bodyParser from 'body-parser';\nimport { graphqlConnect } from 'apollo-server-express';\nimport http from 'http';\n\nconst PORT = 3000;\n\nconst app = connect();\n\n// bodyParser is needed just for POST.\napp.use('/graphql', bodyParser.json());\napp.use('/graphql', graphqlConnect({ schema: myGraphQLSchema }));\n\nhttp.createServer(app).listen(PORT);\n```\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/master/CONTRIBUTING.md), take a look at the [roadmap](https://github.com/apollographql/apollo-server/blob/master/ROADMAP.md) and make your first PR!\n","license":"MIT","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"homepage":"https://github.com/apollographql/apollo-server#readme","keywords":["GraphQL","Apollo","Server","Express","Connect","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":"https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-express","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.8.0","description":"Production-ready Node.js GraphQL server for Express and Connect","directories":{},"maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"_nodeVersion":"4.8.7","dependencies":{"apollo-server-core":"^1.3.5","apollo-server-module-graphiql":"^1.3.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"multer":"1.3.0","connect":"3.6.6","express":"4.16.3","body-parser":"1.18.2","@types/multer":"1.3.6","connect-query":"1.0.0","@types/connect":"3.4.32","@types/express":"4.11.1","@types/graphql":"0.12.7","@types/body-parser":"1.16.8","apollo-server-integration-testsuite":"^1.3.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_1.3.5_1524057017748_0.1366897372039515","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@1.3.5","version":"1.3.5"}