{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e136269cb466b52dbe2b40b7c1c5620ec8d9b956","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-2.4.3.tgz","fileCount":28,"integrity":"sha512-B/Fr++OOiGcG9YdGF8ZPFg0ucyUsfF4rbPjjS2aR6x2A6ph3Mi563VdQ395PDR7oH2FxW2veiSTF8TdT43+5MQ==","signatures":[{"sig":"MEYCIQCpptg8Cv58j3i4i4MfjX6QeDnMxEu2FGK49Ck4F32+uQIhAPYPsAWY0dkg+q1kPHGkhnuEoj1hef3AvwQwWhvQQBtb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbYezCRA9TVsSAnZWagAA8RAP/01ZAo9ZrHpdSh0czXv7\n67U7dCkoDrQdN7fsCBPhQN02NqQFoL2lKm5MCA3l5GqGR4hIRMQjrBovxTj8\notFdzCwWDNZY+Fx5HZKJVcs37wzaVxgXtwEakQF46xf28OrT7ERnDIq6jUhn\ncSVzjEOGbCVoEpsP8rbLSqivMuE8FiULAcxoCxIIj5Dq5O69Dx6oQWii6Rmi\nTi+f4lRfMNuLnDGo3m4opiv9ReA+xoFUe/U55k5aROuK7VGBkhbNii4MGCd9\nnURe4DdEgirYXWoB6uFFBRVfW55TQ09ha9nQby64rLHd/klWvu4wS47PUkbH\n07BO4z66Vl44DNPPzQ+i/wzlpQotnDSG2dOI5Q5Wj9yNoTOKT2w3xak49NwA\nnPCXOJnSnWag9g+Z7r2toUNSF1BFcu2QKU7k+vxdbNYcj0vap0cCN6RB7N0G\n780zo0GMod0q0z/azi/fKkysTQQYwb39vq8ZksRgmIPtJujHZcF4wblxx9XD\nLdcgPrmi5J8FnvfHDxPqokF09iFaUOHXqxCyIaEXU92wUUcxD8O5uXv6joph\nIbn2q9BnoTQDtB95c0zaFpoQYnWX5yPpwayv0PE91uT/S2VdL8pnabErnbKG\nTe9w0jxRouO1viVK6EhUMdKgjZci78frzLuzRgLBlXkJOI5/M4pQOXmksK8Z\nrLXk\r\n=F7Kj\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\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":"e1d7078817222f125d4e96269e22f66ef0a8ea0f","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.13.0/node@v8.15.0+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.15.0","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.3","graphql-subscriptions":"^1.0.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.3"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_2.4.3_1550682035199_0.9064460281450166","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@2.4.3","version":"2.4.3"}