{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"47e73d6f62125a34481e28ac97b2e63fe62b1b82","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-2.4.1.tgz","fileCount":28,"integrity":"sha512-0Bz8DMZ7nmrvhkCBt0gX9fyFMBKk+s9cz/BYjuCNnzMWtHkOQXdcQg454bEzSBLxlX6fOntMSPxCtv8uYHE6Og==","signatures":[{"sig":"MEQCICtcWE7696c7AdcN/HPOs7iFGg9gT+g7EXBthyxPt9BoAiB957jcz12thHJM/x5KgHERjEEJsg0rgYW7i7oLdsmnKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYzwICRA9TVsSAnZWagAA81cQAIV9xEo51CppeZjKYMAA\nX01ucNhXiwHyM8coNxxIfHj9ThjgKYQYCDg9lGTGDj9JTjnnZSr31JAIIKC/\nihKlinGkkqFQpTLt16xwtdOtZyW1zWYvLDREwJBXHKOPDqSxVXhoLDbySI8R\n/vcR4++h5Q89G9sLRfP9jQCM732iV8eh73rZ1dx/tMcm5LqjlgYesoQecxQN\ndZGAv1QYc3I21Jw13PgIK3whbr+iEeNzGHpA7ZIaKqTyPTZZNNjqw/APrJrD\n0ZjmYb/gHwE+6890T6U5xdx84lE9KXpHk8CsUYLXn8RJjgUHtjgdfVYIz0C/\nrjbM0S6XKbZPaP5wISDsJBhGVDfRtU1tFkTHHcimeOBoupJzhebLLbphI+YK\nd2sN1gTIQTxl6kErLzCTm5GnC260zvt/w6Xp7GSafk8zOey4+vTQjsncb/VD\n53jAc6ZG21UvcGKve217B6ZAWA/qq8gK7F2la+ZQhT7ixFL47+xCOBZl0QOW\nFpmPNdcDdVm1Kt2JSFRbwz8Ltbf4RCd5OpVkz5SjRb58SiFx5P76aMj3k0gc\n7PCIkyD52SnDeNHkJg/tpl0H/5PvJWT8gIu2VEVh2B87+riQo8k4O6ROXyu6\n6dNzFZBspnlk7+2F0mbfDt0z/CwLIyDH1pwPH9nV5cqVipJmlwzU7Kh+lCNd\nE454\r\n=Nzpy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-express","types":"dist/index.d.ts","author":{"name":"opensource@apollographql.com"},"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-express.svg)](https://badge.fury.io/js/apollo-server-express) [![Build Status](https://circleci.com/gh/apollographql/apollo-server.svg?style=svg)](https://circleci.com/gh/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 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/master/CHANGELOG.md)\n\n```sh\nnpm install apollo-server-express\n```\n\n## Express\n\n```js\nconst express = require('express');\nconst { ApolloServer, gql } = require('apollo-server-express');\n\n// Construct a schema, using GraphQL schema language\nconst typeDefs = gql`\n  type Query {\n    hello: String\n  }\n`;\n\n// Provide resolver functions for your schema fields\nconst resolvers = {\n  Query: {\n    hello: () => 'Hello world!',\n  },\n};\n\nconst server = new ApolloServer({ typeDefs, resolvers });\n\nconst app = express();\nserver.applyMiddleware({ app });\n\napp.listen({ port: 4000 }, () =>\n  console.log(`🚀 Server ready at http://localhost:4000${server.graphqlPath}`)\n);\n```\n\n## Connect\n\n```js\nconst connect = require('connect');\nconst { ApolloServer, gql } = require('apollo-server-express');\nconst query = require('qs-middleware');\n\n// Construct a schema, using GraphQL schema language\nconst typeDefs = gql`\n  type Query {\n    hello: String\n  }\n`;\n\n// Provide resolver functions for your schema fields\nconst resolvers = {\n  Query: {\n    hello: () => 'Hello world!',\n  },\n};\n\nconst server = new ApolloServer({ typeDefs, resolvers });\n\nconst app = connect();\nconst path = '/graphql';\n\napp.use(query());\nserver.applyMiddleware({ app, path });\n\napp.listen({ port: 4000 }, () =>\n  console.log(`🚀 Server ready at http://localhost:4000${server.graphqlPath}`)\n);\n```\n\n> Note; `qs-middleware` is only required if running outside of Meteor\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","engines":{"node":">=6"},"gitHead":"4116b2ff4a410049e1fd39eb2203ff691cb1077f","license":"MIT","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.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"},"_npmVersion":"lerna/3.11.1/node@v8.9.2+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Express and Connect","directories":{},"maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"evanshauser","email":"evanshauser@gmail.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"_nodeVersion":"8.9.2","dependencies":{"cors":"^2.8.4","accepts":"^1.3.5","type-is":"^1.6.16","@types/cors":"^2.8.4","body-parser":"^1.18.3","graphql-tools":"^4.0.0","@types/accepts":"^1.3.5","@types/express":"4.16.1","@types/body-parser":"1.17.0","apollo-server-core":"2.4.1","graphql-subscriptions":"^1.0.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.1"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_2.4.1_1550007303359_0.9785685193168252","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@2.4.1","version":"2.4.1"}