{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8c4e63820b103057b8e3f989ead78296b5abd1ee","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-1.3.3.tgz","fileCount":17,"integrity":"sha512-jWXc/4A8076vI7vYz6A4ufp1m2XjhRtFLh+mpQK6h/HgVY6h4aMmwVjTe3/aQn2/ogopW3CQFQzh3Ufb2FJNPQ==","signatures":[{"sig":"MEQCIDp0nleTrHZUwaP2IzX+00ZnJIZiuuWu9vrRqRNH67IQAiBq12Pt4Oi0doMhAIXwEc09kJXxG27V0IGWaDqUpKxOFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29828},"main":"dist/index.js","name":"apollo-server-express","_from":".","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://travis-ci.org/apollographql/apollo-server.svg?branch=master)](https://travis-ci.org/apollographql/apollo-server) [![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/).\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","_shasum":"8c4e63820b103057b8e3f989ead78296b5abd1ee","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":"3.10.10","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":"8.10.0","dependencies":{"apollo-server-core":"^1.3.3","apollo-server-module-graphiql":"^1.3.3"},"_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.31","@types/express":"4.11.1","@types/graphql":"0.12.6","@types/body-parser":"1.16.8","apollo-server-integration-testsuite":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_1.3.3_1522074054012_0.45229193681377433","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@1.3.3","version":"1.3.3"}