{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"bd371e95d8fde0516e867f067281b7a1c3d8260c","tarball":"https://registry.npmjs.org/apollo-server-express/-/apollo-server-express-2.25.4.tgz","fileCount":28,"integrity":"sha512-1Yd9DscLlCP5BhfAkNxg+aGcaTKnL36FyezdL7Iqc+KelON5PAyX8qpAChKL8Z3L2YHJzIk/Haf4dFJLKUjx9w==","signatures":[{"sig":"MEUCIQCbE2XbAlzgQ4JcFtX5FV1l4Fhtt/Iy+GqWCUEmnJ+pDAIgZx7i7M18O551I/8EMNGI3EwH7fcRA4WuDp74ZSaBROM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijmdIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpnxw//bAqdpmAoq4Mu73yoMqfrxVjX/B0myET0qJNiOCYoMq7IFvx3\r\nybM6QVcyhJ6k5tq5S59SnuET0qjZpRa2mfiI922akwDordNzXz3j10jxYwln\r\n5/ovpdxJi9oNWGYVTv6sJnTWhhYyIS7wVv246QxdYzatfyQq4XEXju78jl0W\r\na2KatjfUukCEEAtsjnzvGs11yV/t9JCmENnDORDSO8EMm5i1l+tQHm3gQw+r\r\nfMqhUFafHviEtnKuDiR8kUGYeru2TvmKg5H/Nur7Lr+lFtQpnrA2/BwX5Uje\r\nKM7tWKjwqfZuCy1PtThsc+6mDfz6j8K/yz/7ow4lMj2s0YuOn6HtAn0aBHpa\r\nXCsh/c1XdCQYd5unJVxF15aIEhWMMsSJIzYEcNiOy4uWGUa5E8rKG1mJucl9\r\nPHa63szMzY24DKF75y/szHpxbUztJeNsL8wrn/EwwSPdvXaRjuGmUttCcnLt\r\nFo1h5bZWxZ2GAtW9zm1JYTRAgEIDCCUdyBzLVLALSOPlWmyeoZcujsc0Z9Jb\r\ngpQpuCGDB/YxLl1DQ/VydWQYirTYoKY7Z8kwy/Q2z7hgKDlZt3LdVDyVtE0h\r\n5krtPbkuFEDCrBePjeNs/BG43Rb7NQ7OzwPL3XoI+Z9D/6dAg0TUKIDdxFu5\r\n+FCmRDdrW7vprvwd6jMm1EjEwN4Ic2ZCd/4=\r\n=A8hJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-express","types":"dist/index.d.ts","author":{"name":"Apollo","email":"opensource@apollographql.com"},"readme":"[![npm version](https://badge.fury.io/js/apollo-server-express.svg)](https://badge.fury.io/js/apollo-server-express)\n[![Build Status](https://circleci.com/gh/apollographql/apollo-server/tree/main.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-server)\n[![Join the community forum](https://img.shields.io/badge/join%20the%20community-forum-blueviolet)](https://community.apollographql.com)\n[![Read CHANGELOG](https://img.shields.io/badge/read-changelog-blue)](https://github.com/apollographql/apollo-server/blob/HEAD/CHANGELOG.md)\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/main/CHANGELOG.md)\n\n```shell\nnpm install apollo-server-express graphql\n```\n\n## Express\n\n```js\nconst express = require('express');\nconst { ApolloServer, gql } = require('apollo-server-express');\n\nasync function startApolloServer() {\n  // Construct a schema, using GraphQL schema language\n  const typeDefs = gql`\n    type Query {\n      hello: String\n    }\n  `;\n\n  // Provide resolver functions for your schema fields\n  const resolvers = {\n    Query: {\n      hello: () => 'Hello world!',\n    },\n  };\n\n  const server = new ApolloServer({ typeDefs, resolvers });\n  await server.start();\n\n  const app = express();\n  server.applyMiddleware({ app });\n\n  await new Promise(resolve => app.listen({ port: 4000 }, resolve));\n  console.log(`🚀 Server ready at http://localhost:4000${server.graphqlPath}`);\n  return { server, app };\n}\n```\n\n## Connect\n\n> We recommend using `express` rather than `connect`.  However, if you wish to\n> use `connect`, please install [`connect`](https://www.npmjs.com/package/connect)\n> and [`qs-middleware`](https://www.npmjs.com/package/qs-middleware), in addition\n> to `apollo-server-express`.\n\n```shell\nnpm install --save connect qs-middleware apollo-server-express graphql\n```\n\n```js\nconst connect = require('connect');\nconst { ApolloServer, gql } = require('apollo-server-express');\nconst query = require('qs-middleware');\n\nasync function startApolloServer() {\n  // Construct a schema, using GraphQL schema language\n  const typeDefs = gql`\n    type Query {\n      hello: String\n    }\n  `;\n\n  // Provide resolver functions for your schema fields\n  const resolvers = {\n    Query: {\n      hello: () => 'Hello world!',\n    },\n  };\n\n  const server = new ApolloServer({ typeDefs, resolvers });\n  await server.start();\n\n  const app = connect();\n  const path = '/graphql';\n\n  app.use(query());\n  server.applyMiddleware({ app, path });\n\n  await new Promise(resolve => app.listen({ port: 4000 }, resolve));\n  console.log(`🚀 Server ready at http://localhost:4000${server.graphqlPath}`);\n  return { server, app };\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/main/CONTRIBUTING.md), take a look at the [roadmap](https://github.com/apollographql/apollo-server/blob/main/ROADMAP.md) and make your first PR!\n","engines":{"node":">=6"},"gitHead":"ae444b2916deb2fa37dbd8fa091201235dc2ec6d","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":"git+https://github.com/apollographql/apollo-server.git","type":"git","directory":"packages/apollo-server-express"},"_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Express and Connect","directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_nodeVersion":"12.22.7","dependencies":{"cors":"^2.8.5","accepts":"^1.3.5","express":"^4.17.1","type-is":"^1.6.16","parseurl":"^1.3.2","@types/cors":"2.8.10","body-parser":"^1.18.3","graphql-tools":"^4.0.8","@types/accepts":"^1.3.5","@types/express":"^4.17.12","@types/body-parser":"1.19.0","apollo-server-core":"^2.25.4","apollo-server-types":"^0.9.0","graphql-subscriptions":"^1.0.0","subscriptions-transport-ws":"^0.9.19","@types/express-serve-static-core":"^4.17.21","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.25.4"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-express_2.25.4_1653499720339_0.52223133275762","host":"s3://npm-registry-packages"},"_id":"apollo-server-express@2.25.4","version":"2.25.4"}