{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"54269b4c87a83f05b8d6711461df9f964de9a7cc","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-2.0.0-rc.1.tgz","fileCount":27,"integrity":"sha512-enx69WmYfaQsZbAzhAZTz4v3alyUAfp2abPk/k0jltqGvTJ5Ljx4fmIum2858SXaXqQIxQ6mbpr4MwPS+YnhzA==","signatures":[{"sig":"MEUCIQCMVNJQAOjZjzAeZtfVja65R21ALMeHHChpAbFBqJ6SJwIgRqH9EYAU+QmAd5qVRs+LD1M1/55kjkol6WuQf39fyC4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLCfMCRA9TVsSAnZWagAAv+oP/0iHaDJLJ5hltDDRWT/F\nd+nnE2jLuZPveIi6cDtroM91xBBeG+Tk+m6izBvievilg0OfZAIqRQBZSvm2\ngbZXXewPDyOE9+Ls6Rk5dXOKfO0UX6WUf7BcpW4tlETE2wSZzGJ5h14fBFst\nwpJzICVthkRAvp+RN1SWKVeoBadPiAVXXeFZQg/0xqGP3WF/IJd6zOeilHtC\nsZ62aPKzl3rxUFuDwPXZ5BYtUUdfo4LpeU6S3O6XjxM/ar+Cx6Bh7xDNfgct\nYzPk2a3SCihKrDrK/zQlWBGW27ToTHtspi5rs2jSlunj9fSo3uIin0W/vr7m\nEdgEAs06vTzV6+kR3COOsDMe20v7+saacUG01A328CxEVrS43hMa4Yt1iuY5\nYOt38f+Uo9mRnuh6MF6toX0Ob7RQwwnPlU4rvZmnggWE0VMsuXXTUTAkyCSG\nSEPNZxbAV1/g811oLb5bOi7es6yNOccAJghc+XiOpdIkQJTQoh6zldRQlO3g\n6ODEQiXOjz0wuvuB3VBTjhcuUnljGeOBb7o8TuO517lTNOogneMLDhvC4tTR\nrZrOeC1Z7Nue6J7RQwdTEgrAk+FNloYO/FN1D6o2Qw5u90IatLXybasmLhkV\n5pA8nVIagN/rCoK4KfhAuZ7u9Day8mmcpFQCom/Hres1bYwGu2Igq+gUFdCH\nPhRj\r\n=9osE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-express","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-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 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@beta apollo-server-express@beta\n```\n\n## Express\n\n```js\nconst express = require('express');\nconst { registerServer } = require('apollo-server-express');\nconst { ApolloServer, gql } = require('apollo-server');\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();\nregisterServer({ server, app });\n\nserver.listen().then(({ url }) => {\n  console.log(`🚀 Server ready at ${url}`);\n});\n```\n\n## Connect\n\n```js\nimport connect from 'connect';\nconst { registerServer } = require('apollo-server-express');\nconst { ApolloServer, gql } = require('apollo-server');\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();\nregisterServer({ server, app });\n\nserver.listen().then(({ url }) => {\n  console.log(`🚀 Server ready at ${url}`);\n});\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","engines":{"node":">=6"},"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.7.1","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":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"_nodeVersion":"8.9.4","dependencies":{"cors":"^2.8.4","accepts":"^1.3.5","type-is":"^1.6.16","body-parser":"^1.18.3","@types/accepts":"^1.3.5","apollo-server-core":"^2.0.0-rc.1","apollo-upload-server":"^5.0.0","graphql-playground-middleware-express":"^1.7.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"multer":"1.3.0","connect":"3.6.6","express":"4.16.3","form-data":"^2.3.2","node-fetch":"^2.1.2","@types/cors":"^2.8.4","@types/multer":"1.3.6","qs-middleware":"^1.0.3","@types/connect":"3.4.32","@types/express":"4.16.0","@types/body-parser":"1.17.0","apollo-datasource-rest":"^2.0.0-rc.1","graphql-playground-html":"^1.6.0","apollo-server-integration-testsuite":"^2.0.0-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_2.0.0-rc.1_1529620428384_0.5737376810779149","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@2.0.0-rc.1","version":"2.0.0-rc.1"}