{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a0293e7797ba899d5225a587cd02493b39bcf2ff","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-2.7.0-alpha.13.tgz","fileCount":28,"integrity":"sha512-42+6uUuJqlAN5hS2k/75yU3RoCu6SRztzOLuyAc5PLue4y3JFd9+g01zzrw1SEhhaGucxxSSJYoOlTX/K0+Vyg==","signatures":[{"sig":"MEYCIQC9r9nFLpdb0sPa6RWVT9XE9JqJKi+FxkDR17AOhERFHwIhALDNyETtmpJLnN9aPBxp6ed8dKNkDoLIkzZsSTyg3Pif","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLHS5CRA9TVsSAnZWagAAPdoP/jYlVD3wyfJPF1OrKBvF\nb6jT9LBPhFVfQbuGJYyGfaRXdY+Q88YOozKnrjAAGHCvNoiui43uH4PvRjwt\nHSB0ecPNkvIvWsvmZc/EZrHWbCrt4JBkbmDogbXK3V/L1O3aBGV5GdJT1U4l\nNXcTvggimQv+Vcqcmnzr/LLH0FdP4Ny37Pq/ziC8iqkWU9kzKA7WG/20uFla\nDtJIggF2v8E5MTxwX3eQhmjOWU9SgvWZiMUiyIau14Gi+OlokrovJkA78HyX\nTTwwhop/qklN5i56EQSbEiWccPyN+izpe1FbKCtgE1eTqwK9LbG9c2XU3AV0\nvCP2WyKJ02yetMGq2NBwmWHt86jAMuQm42y98xRTZ0Zcb9rJ1DT0PEfU/EXK\nekfLuD3NDngjxZnoLFG9gjoCBTBM83yR9xhl2DOgXJ3Br2WnHJNgn4kXW+eg\nNC14vyQwgAK7DMqElBPR87QIBRtjKnXzdt8XOiisb9eDcVVihHMpWPmw0SDe\nbMhTyxPnAz2bMOTqlgFnOvQRpRLrZrPkx5QPiepnqOnZ2k2o9OLnxX2ACQZU\nQhlnexwjUQzFjNuGvh//iI0wObnUyMuU1ZIrdUTGBcozS39ZpYjyPgQtT3/P\noVXyVZnYVb/CW+qtF1jYVc2xXujbgn1kp2XTx7yrFbgG6Y/fYsDIK9Fh3w+2\nh72G\r\n=resV\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":"[![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) [![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```shell\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":"b76ca731c7de2ebb4cd1cecff7e4d6c23f1f3b9f","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.4/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Express and Connect","directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"evanshauser","email":"evanshauser@gmail.com"}],"_nodeVersion":"8.15.1","dependencies":{"cors":"^2.8.4","accepts":"^1.3.5","type-is":"^1.6.16","parseurl":"^1.3.2","@types/cors":"^2.8.4","body-parser":"^1.18.3","graphql-tools":"^4.0.0","@types/accepts":"^1.3.5","@types/express":"4.17.0","@types/body-parser":"1.17.0","apollo-server-core":"2.7.0-alpha.13","compose-middleware":"^5.0.1","apollo-server-types":"0.1.1-alpha.13","graphql-subscriptions":"^1.0.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.13"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_2.7.0-alpha.13_1563194552342_0.9187520434676542","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@2.7.0-alpha.13","version":"2.7.0-alpha.13"}