{"_id":"apollo-server-micro","_rev":"356-5b33b2209cf186af3d665db8c099c1d4","name":"apollo-server-micro","dist-tags":{"next-v3":"3.0.0-alpha.3","unified":"2.23.1-unified2.3","alphalambda":"3.0.0-lambda.0","html":"3.0.0-html.2","preview":"3.0.0-preview.4","rc":"3.0.0-rc.1","next":"3.2.0","alpha":"3.6.0-alpha.1","v2":"2.26.2","latest":"3.13.0"},"versions":{"1.0.2":{"name":"apollo-server-micro","version":"1.0.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.2","maintainers":[{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4a312a0ddd8557e6f2f959610a630e71b31bed54","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.2.tgz","integrity":"sha512-5DxtOhlws1jG0XqiCqJQujHkPQemntVK30HB35TELxI7JK6cSBnFrMuB3mK/Mrx1CxApoDiY0AofiEAOH2WdMQ==","signatures":[{"sig":"MEUCIB5w3ZoJY0rbRijqG3+zR9VIwyRdgLEUJDVUs//W4m5oAiEAzZVmrri/9YvQ7XaFTNiXktS63XL6Q8w6m4ogqNRBjzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"4a312a0ddd8557e6f2f959610a630e71b31bed54","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.2","apollo-server-module-graphiql":"^1.0.2"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.2"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.2.tgz_1500334272682_0.24601601785980165","host":"s3://npm-registry-packages"}},"1.0.3-tracing.0":{"name":"apollo-server-micro","version":"1.0.3-tracing.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.3-tracing.0","maintainers":[{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4ee910781c65bc6318bf4c8d17aa146e8d71d318","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.3-tracing.0.tgz","integrity":"sha512-lzrnxGC+sj8mn6Q+VB3r0Bvg7+US/fdiVKSIUjIuqQa0uzH9jW6XV8lQF6gwTwMshkcAydL3aZFhn1jzgl4AGA==","signatures":[{"sig":"MEUCICn4r/FyXZ3CYyzQelW2OwRv1kq1GmnSMixN5HkZxDN4AiEAldETbz/cYg0fvTg9Yus6r2tghkoIbI9r7cPT5R2/WGQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"4ee910781c65bc6318bf4c8d17aa146e8d71d318","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.3-tracing.0","apollo-server-module-graphiql":"^1.0.2"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.3-tracing.0"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.3-tracing.0.tgz_1500583419568_0.7957542869262397","host":"s3://npm-registry-packages"}},"1.0.3-tracing.1":{"name":"apollo-server-micro","version":"1.0.3-tracing.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.3-tracing.1","maintainers":[{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8e0b6c6c55243a4d28dd50874c5d13d16b85d8c8","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.3-tracing.1.tgz","integrity":"sha512-o8ImImtvJwMhdxw8ZG+++rkLMR3SUuNjglJic/JjVGatWRmTrSjBC93pxIWKu+1wYPaGX1lXiu4X0ANUExGpfQ==","signatures":[{"sig":"MEQCIFr/ITXz+XxMAqtYzrumMV8FTsPhq7GXvndmg3YxlQJdAiAiJTKVqr7U/PKQbufLTqwsuMrQWbvrfGwIuc+CJ+ncbQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"8e0b6c6c55243a4d28dd50874c5d13d16b85d8c8","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.3-tracing.1","apollo-server-module-graphiql":"^1.0.2"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.3-tracing.1"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.3-tracing.1.tgz_1500584195236_0.6224391451105475","host":"s3://npm-registry-packages"}},"1.0.3-tracing.2":{"name":"apollo-server-micro","version":"1.0.3-tracing.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.3-tracing.2","maintainers":[{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"12cd476440811a5f9a6b3902fa913e6f216e0627","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.3-tracing.2.tgz","integrity":"sha512-vEcj/m9eF8hGRCbpzBst54E2GuKHGnYLM7pFJM99nVIMibeGCCS2G0mbKRgGHnB3UA+cVxgSQczPrmfVJnzpqw==","signatures":[{"sig":"MEQCIFejHqEmzA0cJa+GMeGM3yG2GiE6FAYsIo9nwy/PlAPfAiBpCmOyFWie59A1xbbzBE5/0sB7pIcHMNW9z7LTEZjMdw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"12cd476440811a5f9a6b3902fa913e6f216e0627","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.3-tracing.2","apollo-server-module-graphiql":"^1.0.2"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.3-tracing.2"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.3-tracing.2.tgz_1500584526814_0.45854180958122015","host":"s3://npm-registry-packages"}},"1.0.3-tracing.3":{"name":"apollo-server-micro","version":"1.0.3-tracing.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.3-tracing.3","maintainers":[{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8a8a23aa13f439c242a356cb272920e1faac1e51","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.3-tracing.3.tgz","integrity":"sha512-Rxzq8g5LxjvACrzxPIkwSbSIkxhZHIowIcDcla1swTNnvCb9FTOPouRxWRxdngGK4eSif2BipJ6i8tOZUhByHQ==","signatures":[{"sig":"MEYCIQCGlZEdL654eWj29sN74X8J7Zg+0CsGouapke7UqcpvFAIhAPnUCBjM/7wxsi0r4NdUedjfRU+Ff0nYPzOemnZrjKCc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"8a8a23aa13f439c242a356cb272920e1faac1e51","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.3-tracing.3","apollo-server-module-graphiql":"^1.0.2"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.3-tracing.3"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.3-tracing.3.tgz_1500600870128_0.7830725042149425","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"apollo-server-micro","version":"1.0.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.4","maintainers":[{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a6bbfc0f466a21eaeec4fa09046d7a59ea33a08e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.4.tgz","integrity":"sha512-jrUSn4XCk10yfb0dDqtFZs/+tY46Cb4utBGCyUEpAX2dbMkxeyYjHZfRayeuWO7oNPFHv67GTvqWn9us7vS53Q==","signatures":[{"sig":"MEUCIQD3QDj1Blt2xmrcOAaGlXQ/2QY0/mSuJH/7wbKCpTM6mgIgK/GD+rfoAsQgRp0hwZbnzhZvdeF53GITd0pD41fwzrc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"a6bbfc0f466a21eaeec4fa09046d7a59ea33a08e","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.2","apollo-server-module-graphiql":"^1.0.4"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.4"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.4.tgz_1500884567012_0.03209256404079497","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"apollo-server-micro","version":"1.0.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.0.5","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1e50b8ca0eb6110b1d5f54ef73d46bc64526f878","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.0.5.tgz","integrity":"sha512-mLnaIEXosiCtfMLtDrc1LmXy7FSUcIeVQJw+EybvKAJhmmdkrM3RsZiWuAsa+62mGiMTZPGpDlqqBa1pCtoMMA==","signatures":[{"sig":"MEYCIQDyQYboScgLY+WJ/1bKwTPKiizg7xpQqQHV9LDtTZHVswIhAJ5vDHsVSdxUjel30xzHSmnso5PjwI88mCdMqu4e6dQt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"1e50b8ca0eb6110b1d5f54ef73d46bc64526f878","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.2.1","dependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1","apollo-server-core":"^1.0.2","apollo-server-module-graphiql":"^1.0.5"},"devDependencies":{"micro":"^7.3.3","microrouter":"^2.1.1","apollo-server-integration-testsuite":"^1.0.5"},"peerDependencies":{"micro":"^7.3.3","graphql":"^0.9.0 || ^0.10.1"},"optionalDependencies":{"@types/micro":"^7.3.0","@types/graphql":"^0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.0.5.tgz_1501612639505_0.4959381513763219","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"apollo-server-micro","version":"1.1.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.1.0","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2fa0af5725a3ab5e61c26961886ec772573c5772","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.1.0.tgz","integrity":"sha512-cXPt3i620ynAYEbY3HdlifHPS3Zt/Co2bKhhiA6WIBUibGqPz62QtHWyyBEt1E4GNUQD9nn2X/tpjQbENv3x4Q==","signatures":[{"sig":"MEYCIQDnY1GVzc3qLdtpYaoi+0dNWMrrVgpVClt3OPvE2ft7oQIhANaHGYV/NU7pGGSDzcoui/fSYH+LuiS6ZLumHAGCB61c","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"2fa0af5725a3ab5e61c26961886ec772573c5772","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.2.1","dependencies":{"apollo-server-core":"^1.1.0","apollo-server-module-graphiql":"^1.1.0"},"devDependencies":{"micro":"^8.0.1","microrouter":"^2.2.2","@types/micro":"^7.3.0","@types/graphql":"^0.10.2","apollo-server-integration-testsuite":"^1.1.0"},"peerDependencies":{"micro":"^8.0.1","graphql":"^0.9.0 || ^0.10.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.1.0.tgz_1502305997449_0.5298725569155067","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"apollo-server-micro","version":"1.1.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.1.2","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"113cc46c3af73f472d3f05c048718062edaf3b0f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.1.2.tgz","integrity":"sha512-19zFzGsRxGgfUgpEAPqCvZb4d1XGkJHFWcrPT93QCaMJXGPO5l8TjSNndBx7oau5MFnQ3foAVB1zgGspc8mmzQ==","signatures":[{"sig":"MEYCIQD1XDKZDKoMWaIUCxjXfvAX/4nawwCWd2iOknYEYEK7nQIhAL2vmvBb3m7VLd5PGbTe0P6aHzb9sr5QqhAuwJqSvnFl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"113cc46c3af73f472d3f05c048718062edaf3b0f","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"sashko","email":"s.stubailo@gmail.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.2.1","dependencies":{"apollo-server-core":"^1.1.0","apollo-server-module-graphiql":"^1.1.2"},"devDependencies":{"micro":"^8.0.1","microrouter":"^2.2.2","@types/micro":"^7.3.0","@types/graphql":"^0.10.2","apollo-server-integration-testsuite":"^1.1.2"},"peerDependencies":{"micro":"^8.0.1","graphql":"^0.9.0 || ^0.10.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.1.2.tgz_1503548863087_0.4876888741273433","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"apollo-server-micro","version":"1.1.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.1.3","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3209ab42d54a22b162b9f4f6abf2fa881530f2ee","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.1.3.tgz","integrity":"sha512-GdvxA+2kfvAwd4VSMcHElaDmAM6abwsTMg+w75gASvsLOMWo52FFG5zsltJRR6KKfq9RYzI6gkmdy9jQErFXLg==","signatures":[{"sig":"MEMCIGcAxNTOwZrYt6lq8RJuPZ9djFX4CIO4Rk/91eE/sMc6Ah87xVM8GCkf7ozq1IcRjp6UwumZIEBEouEt7u3amRdd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"3209ab42d54a22b162b9f4f6abf2fa881530f2ee","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"6.11.2","dependencies":{"apollo-server-core":"^1.1.3","apollo-server-module-graphiql":"^1.1.3"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.4","apollo-server-integration-testsuite":"^1.1.3"},"peerDependencies":{"micro":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.1.3.tgz_1507178815222_0.8076620895881206","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"apollo-server-micro","version":"1.1.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.1.5","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"74f9ff94ef47054f642f34627a0db8dfcd686163","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.1.5.tgz","integrity":"sha512-ovGiem2KqihJ2PMFFTOFEjt8Rt8ApYKOW7/9ISwZOU/PJvrGbQg2HGcpq39DrJUsdSy+f+0WATJjJllGc6D97A==","signatures":[{"sig":"MEUCIGnWuAry2vPXpsWunpe1IVB7kRa+nex3qxqaYQEmb1UuAiEA/RlAKEvofGcTNkrntXn1mNTMSnNGMPT2oJIrrdLqKxc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"74f9ff94ef47054f642f34627a0db8dfcd686163","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"6.11.2","dependencies":{"apollo-server-core":"^1.1.5","apollo-server-module-graphiql":"^1.1.4"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.5","apollo-server-integration-testsuite":"^1.1.5"},"peerDependencies":{"micro":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.1.5.tgz_1507574066351_0.9076159095857292","host":"s3://npm-registry-packages"}},"1.1.6":{"name":"apollo-server-micro","version":"1.1.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.1.6","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"df70e30314dfb028fbfd17765e7d3e0515f17ad3","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.1.6.tgz","integrity":"sha512-BchK1pjx1fGp4OKzQ7UXIZFd8EtuKuZvIohCAQVXkSIqbcHc3Fb1LfZ5U+UiXY7BjzYCO8PPrxLm3ByNlrcCYQ==","signatures":[{"sig":"MEQCIBV7DAwV36iLmFL8w0hCIA/cxdnSyOaWs+ZJbOlSxbD5AiADkACo3y74MNPcl/6HwJMNit5+2m1b63hmCJeEGjhbEA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"df70e30314dfb028fbfd17765e7d3e0515f17ad3","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"6.11.2","dependencies":{"apollo-server-core":"^1.1.6","apollo-server-module-graphiql":"^1.1.6"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.5","apollo-server-integration-testsuite":"^1.1.6"},"peerDependencies":{"micro":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.1.6.tgz_1507576344425_0.9614422719459981","host":"s3://npm-registry-packages"}},"1.1.7":{"name":"apollo-server-micro","version":"1.1.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.1.7","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2b49a891d40b1de8201c503083fb8baedad5dd5a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.1.7.tgz","integrity":"sha512-+iaJ4trfYI+DUZS5quUdVtPrs1GSosHMPy/j9SsTstnRTQynX5FuDD9/1TF7MnxPEZd02jUmHVbZ4z+MPhqNGw==","signatures":[{"sig":"MEQCIAXk41e6RxUh9yghECwdhlUHR4yHjA3xYoe+nWLzGug0AiA/pGVhN0gRiNJpceCBRhuWIxaifaH1crUdTeWZEQRlPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"2b49a891d40b1de8201c503083fb8baedad5dd5a","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"6.11.2","dependencies":{"apollo-server-core":"^1.1.7","apollo-server-module-graphiql":"^1.1.6"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.5","apollo-server-integration-testsuite":"^1.1.7"},"peerDependencies":{"micro":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.1.7.tgz_1508165982059_0.14533490082249045","host":"s3://npm-registry-packages"}},"1.2.0-pre.1":{"name":"apollo-server-micro","version":"1.2.0-pre.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.2.0-pre.1","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"409aecd437632e083c65435f91b064d5bdb47b49","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.2.0-pre.1.tgz","integrity":"sha512-V3KQU7pDBABrNb1+KTJFjv+/GkvmFdYeRyQ5RJcpIY9DAt2O2wW/LVjMNiRx0PDlbR6IF3z6rPvm72IFvkbQUQ==","signatures":[{"sig":"MEUCIB2D69Ur1dplMd+G/5cfcSUCmTydgwCcDWJxLaXaOqyOAiEAkZQkziWB+EQZost3l3Z3SElGvAD9xQAeNx2xx7BoRS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"409aecd437632e083c65435f91b064d5bdb47b49","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.7.0","dependencies":{"apollo-server-core":"^1.2.0-pre.1","apollo-server-module-graphiql":"^1.1.6"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.5","apollo-server-integration-testsuite":"^1.2.0-pre.1"},"peerDependencies":{"micro":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.2.0-pre.1.tgz_1508817312698_0.37776673561893404","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"apollo-server-micro","version":"1.2.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.2.0","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5e92cacd7bcb5c2d1ccb5f359bda92e61444d68c","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.2.0.tgz","integrity":"sha512-tMiRqpGzcQ95Zy64O5885v4Ev4SNEERXnZdFOauauVoRyWFVyE+22I5Xm8IB6z68XGP4b0jWnlYiv7X26C0OZQ==","signatures":[{"sig":"MEUCIQDaNsrfaLkjRig5DXay1VDC2rlauzV2VkZhwlHDhpMcxgIgAxL//5LrxaQfL3GXPeMHfIcQAOWN45Kn1/iUFA1bsbA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"5e92cacd7bcb5c2d1ccb5f359bda92e61444d68c","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.7.0","dependencies":{"apollo-server-core":"^1.2.0","apollo-server-module-graphiql":"^1.2.0"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.5","apollo-server-integration-testsuite":"^1.2.0"},"peerDependencies":{"micro":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.2.0.tgz_1508861704549_0.40975607349537313","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"apollo-server-micro","version":"1.3.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.0","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"33b0f04f1e4f64efdd0b6f2245ce6b8bcf2ec088","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.0.tgz","integrity":"sha512-iiu/zjWzUGOf9i+BGxL97E+FcxJ+NSP4ggPfST+VGjjfNzPiG2Ojx7FlFc9xng+wjba3XMdofRZB2Z3k/IniAQ==","signatures":[{"sig":"MEQCIF5wN7nW3IHvgb22GeEIbh7wxslIZuO8Me1kRIMEH+8DAiAwsGJjykmK5vRgOBGbLU/2ly5ceEnOhqGvwq6pjfsoDA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"33b0f04f1e4f64efdd0b6f2245ce6b8bcf2ec088","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.1","dependencies":{"apollo-server-core":"^1.3.0","apollo-server-module-graphiql":"^1.3.0"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.5","apollo-server-integration-testsuite":"^1.3.0"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.3.0.tgz_1513068364028_0.11219095741398633","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"apollo-server-micro","version":"1.3.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.1","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"bb9bbe42b565eda6c0a365233ba2982cf8d690e5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.1.tgz","integrity":"sha512-y8kj3Gh7m6oByCwDWTDx4OBS7Yg+ILrWh/ArFmjkat9IaKSnxuLOphK/Ns/lkoJ65X/lmdO0E+WdP1Au4FQtYQ==","signatures":[{"sig":"MEYCIQCr291t77Jo/7A/4BwAAZ/uie0Rl2lia+WQJjSOPkSNVgIhAP/2Ixod1SAxDOYpiqdHqNyotVkNpZCJW3yRva3DU/1l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"bb9bbe42b565eda6c0a365233ba2982cf8d690e5","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.1","dependencies":{"apollo-server-core":"^1.3.1","apollo-server-module-graphiql":"^1.3.0"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.7","apollo-server-integration-testsuite":"^1.3.1"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.3.1.tgz_1513578902878_0.0946983729954809","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"apollo-server-micro","version":"1.3.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.2","maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e66d738163c4ea69cb71a856c7c98b99370ae394","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.2.tgz","integrity":"sha512-IYJ7qqXpf1ZeXTs4HaTeakO4mIZNBM4/0nMtLcL9XGxi9Ah48qV8Oj9puv1ogX56O6q2CJMxDrxSWw+mXCyFZQ==","signatures":[{"sig":"MEQCIFpmzoJHjQ89TxMSllyzjOt3wm7f7i8ADnV/oPlAoiMdAiBzSyzYt5O1h6IDwFg46KJIyg+3YhqC/tQQje8vXNzurA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"e66d738163c4ea69cb71a856c7c98b99370ae394","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.2.1","dependencies":{"apollo-server-core":"^1.3.2","apollo-server-module-graphiql":"^1.3.0"},"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.11.7","apollo-server-integration-testsuite":"^1.3.2"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro-1.3.2.tgz_1513699387768_0.4848774755373597","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"apollo-server-micro","version":"1.3.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.3","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2bfe9523c1ac64b0469cf9c01673fe04f991bb4a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.3.tgz","fileCount":11,"integrity":"sha512-j9WZq5C9XaR4U4mOrYRfCZZ9itAjZ6Z2UMnOTNfipAS/jyzvKd8teTJW8APN6E4WvbL8ZHS7DQq6xgFhGXGFEQ==","signatures":[{"sig":"MEUCICXi88iHsxQW10JYTenErXmeufji8uEXzsPIkv00d/AmAiEAoSwfAQRxg4SXNQkcSWahuo2MNpJWaue9pMW6o1ZvkJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15324},"main":"dist/index.js","_from":".","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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://travis-ci.org/apollographql/apollo-server.svg?branch=master)](https://travis-ci.org/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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/)\n\n```sh\nnpm install apollo-server-micro\n```\n\n## Example\n\n```js\nimport { microGraphiql, microGraphql } from 'apollo-server-micro';\nimport micro, { send } from 'micro';\nimport { get, post, router } from 'microrouter';\nimport schema from './schema';\n\nconst graphqlHandler = microGraphql({ schema });\nconst graphiqlHandler = microGraphiql({ endpointURL: '/graphql' });\n\nconst server = micro(\n  router(\n    get('/graphql', graphqlHandler),\n    post('/graphql', graphqlHandler),\n    get('/graphiql', graphiqlHandler),\n    (req, res) => send(res, 404, 'not found'),\n  ),\n);\n\nserver.listen(3000);\n```\n","_shasum":"2bfe9523c1ac64b0469cf9c01673fe04f991bb4a","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.10.0","dependencies":{"apollo-server-core":"^1.3.3","apollo-server-module-graphiql":"^1.3.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.12.6","apollo-server-integration-testsuite":"^1.3.3"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_1.3.3_1522074058821_0.2500636713457609","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"apollo-server-micro","version":"1.3.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.4","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d4a0dff1be07507a900c7a3595ab41cac64777e7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.4.tgz","fileCount":11,"integrity":"sha512-0yhF4dp+tsHl6uCgoPY3mH1bGpLAKg/PkwwbJOGbWhqgz5hxipApGtskVlGi73PyHvwBnGzoZtmcKIawW9oidg==","signatures":[{"sig":"MEUCIBezwWww2VgKYHVZqnwvjp0C+IjXjwFt9KnDD250TxNYAiEA/YZQ+4QmfA0cYKY/C9siuYXYuyOksRVXsTKnys0Spg4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15279},"main":"dist/index.js","_from":".","_shasum":"d4a0dff1be07507a900c7a3595ab41cac64777e7","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"9.5.0","dependencies":{"apollo-server-core":"^1.3.4","apollo-server-module-graphiql":"^1.3.4"},"_hasShrinkwrap":false,"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.12.7","apollo-server-integration-testsuite":"^1.3.4"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_1.3.4_1522270656212_0.09739566063187555","host":"s3://npm-registry-packages"}},"1.3.5":{"name":"apollo-server-micro","version":"1.3.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.5","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"mdg","email":"npm@meteor.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3020b43550cfa3ce27ce7d64c578bed01160b58b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.5.tgz","fileCount":11,"integrity":"sha512-JS5BwJ8i3H1wtYK5gddOpGYyc0IqqhLIoII97W9mSy4q0e+wqepvV7ZQTsy2wBwKAcizBaz1DikPyIRtGRFKqQ==","signatures":[{"sig":"MEUCIQCffb34ZMNho3qA4zEHnlSKO7i0MLRj/i7urtFdRWg1lgIgUaR6YsM3SDCT9bcexoyN+bSv770dZ1n1jtGn2BW5QHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa10PDCRA9TVsSAnZWagAA7N4P/2OcDWS2WU6Ft5wzssTZ\nc4EvkXmscReB1hsR/y3VCfcSS4jwBVGi3a318YuvQHKTLURvpf8OGtt4iEnr\n9cOz8H5EWyiejg/qykdJNtc/BjstxZbV6IJ3/uSudaMP/LYOVQbOQwtdra0p\npFXu2C+m6Q/p6SE14iUvHaFTsRvA2eJn07Ez7ynQzVAx9cxZZTr3igvfAHqJ\nHkSn/JOwiBtvknhg60Atbm2D5XhlfWlbroKGwS3TOKIGkUxGDqdOCJdbjMvE\ntkdel2ibkP/pAgZQs9pce9l4hntAVIoBIBfhJXqGBhZ0dgQcVStdKK2yTZz/\nqdietSmlk1WrJY9F+n6U2eu+0SwjQFxa7dBtWI7uv+5oGkY6QVuGzMmkuOp1\nsM1jinVgv3ICWMExwg7b7gFxWX3lb1pshgzpnrf7xjx330M9o/KjlnBJryYg\nmBWeZBpdt6GIGyalfaVb84uLk97E9t9vlCDDVLHRMPDp7UxpwGFpy4HomJaL\n8rSBEkU9/CBS1Qx9eUAroRHgjscdVquD7caP2tgrISttVIdlKrGD8gTjTRyK\nb+IkJTrtOSHNuTYmxINleyQJArSsoTX2CaH+SDJgmXieovHtLCqlwHbpS8VS\nWbZXwmKtFskgKXQ4NG4v07Y+R5TyirC82gmiwLzlAIm1baY+XVVj1loC1mst\nYH6v\r\n=i9ZS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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-micro\n```\n\n## Example\n\n```js\nimport { microGraphiql, microGraphql } from 'apollo-server-micro';\nimport micro, { send } from 'micro';\nimport { get, post, router } from 'microrouter';\nimport schema from './schema';\n\nconst graphqlHandler = microGraphql({ schema });\nconst graphiqlHandler = microGraphiql({ endpointURL: '/graphql' });\n\nconst server = micro(\n  router(\n    get('/graphql', graphqlHandler),\n    post('/graphql', graphqlHandler),\n    get('/graphiql', graphiqlHandler),\n    (req, res) => send(res, 404, 'not found'),\n  ),\n);\n\nserver.listen(3000);\n```\n","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.8.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"4.8.7","dependencies":{"apollo-server-core":"^1.3.5","apollo-server-module-graphiql":"^1.3.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.12.7","apollo-server-integration-testsuite":"^1.3.5"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_1.3.5_1524057026905_0.7111846652094875","host":"s3://npm-registry-packages"}},"1.3.6":{"name":"apollo-server-micro","version":"1.3.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.3.6","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0acee4f9311dcf3e1f6e2dfbee1a77b625a5e4b0","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.3.6.tgz","fileCount":11,"integrity":"sha512-pWGMUERur0tbNEfcn589SybegngajCSnT/I+GGucGVkWUfn3hko6XCTBRjO4xso55OSM1l1cz9aLLV2xinsd1g==","signatures":[{"sig":"MEUCIQDS6s/Fa5ASxRSfjEOMQKT5iPIYDejBaW5EVrg9Cq0GtgIgcTRm0GuVEXe+p6Zv4uazXFMH5ARPjjjtAqM+ijROmHA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa33j9CRA9TVsSAnZWagAAz9oP/RlDT9Pq9tOhvOVla9KG\nDNrCgSjDm1loSSRrKWzX6A+ohaCTYjClgz/TQQXBSYVKufQWwsEJAzLSwvu8\nttx3qovuIsIF9yzRyxR+cyqnXtLiqHdq8SPJM8xDs4CjFE/MgbCWTd1oUM07\nKi6g2i5YbiIbI3v1A6Qkm3sLxqaJht9xngNEIF/nS1ccXLrAne6zAmdT/8oP\nRW6wTJmDVWaNup+mtt9jZrKT4+mbpuBnvx54bn1SFLRBmroEQdOZvOPaIOnD\nX/+4HW1A/nkw1TjQG31YO2TuWdyiaZMt86UF89ziaHBri+PmBTQLaQUi40OU\nVR87TAdwbAFoV4/PKowTxQWKDPdVf5ewlQPONRgok42lVVwstgyOhqLJ7D0O\nfP/xSeC55jgckBWf62zmDH3fkCkP2RrUEPdPpp+cwg7J24BaDrS3ANM8DRej\ns0Zx5RGw/W2iAl9g609NXWzrw7UZnCHyYGxnqdg0ydvOjPk+VMUd97ouaQJB\n4aPD0cKoCKK5eDuZj5A9/BscPPAGEOX+3H5Vh5rhMaq9+7GlwMmFVZyzJ5xc\nYIspMlYjsa7Y0Qp7TrvgTs66df8IKpKOfIy5tImocy32ypnr/AZAM/OsINxf\nl21I5K1qnMdxtoiwn0++5aueuf1KL4FL3peCRyVcH2VXwvKV1ay/0pxjqs8y\n11xt\r\n=hTYv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":".","_shasum":"0acee4f9311dcf3e1f6e2dfbee1a77b625a5e4b0","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"3.10.10","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"9.5.0","dependencies":{"apollo-server-core":"^1.3.6","apollo-server-module-graphiql":"^1.3.4"},"_hasShrinkwrap":false,"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.12.7","apollo-server-integration-testsuite":"^1.3.6"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_1.3.6_1524594940784_0.9752755335054013","host":"s3://npm-registry-packages"}},"2.0.0-beta.5":{"name":"apollo-server-micro","version":"2.0.0-beta.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@2.0.0-beta.5","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"646603252ca015d66ee91db391bd52357b9c1955","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-beta.5.tgz","fileCount":11,"integrity":"sha512-YrxNklf8lRv31h3o7IAdDTS/0nVGziyIUDhJ4ixHPfv3iwXod2MiDifYzKZaeSW4ReiaqqTbqIg6Cvcl6xRupw==","signatures":[{"sig":"MEQCIFVo0TO6FKhmS5ciOvO+9L0bPeYGjvXCg5nW2ZvwfzCKAiAcWFhz1BpBh3MzpHzwVHHfaNqK45nXl6bk1bp2FnxZbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15509,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbGaw0CRA9TVsSAnZWagAAPBoP/RurSHCWdyonHS6r1SY9\nk78rkVGWhlyI8X8FYVzNjcT5eo/iWeoLB3EhtlKyg2YhmE4H3q0qzFa/GCAK\nzER0ke3C9IiU2EHcUeyL4ZUhF7QUvCrKYvbzLbxVOYp2+C+gaOfF7/gxgLaG\nVAcdfXLPPvWfvFebGoRquGoEBvg9oZROqI+Zr5TeDMwe0jmV4lWsTutl84FL\nbfJ0P92P+RoPhYRhbOFegUSMYP9zmt/Vas+5PayBXLNTDvu841IDBmmLnhdY\n83wucawwTobfHsyaFEfoczPPwRCRMhwdnOVVG3Bem+JCQAws2Z8hYtPPs5aV\nQmpaFX9LpbkEiHaO0yU4AY0c7d+3bf4ZNMT+DPY7HdF65O1f+OR/Fm3gfGbB\n/Vz4fBAWbPp25eamZHXubMGR+RqQ6EnDiBKSNq6hLhUaGgqwwNs2SVPhJJJJ\n26QNRke5S5GP9Ii4fkJX/BlYRh7BpwKknv0LaiBqSoqEH256g4JCSd7L2TZK\nA0maUefUpvyPelji7vx3BwUUTdF1+vucBeq9yOsrpdJQ5eINLBro+tyQTue7\nw3W5H5Nht9+TEVKQ4TQrLcLiNDtDwoBJ5bmZSG3pfcQpPExgt7zreT+kgYTy\n04IvP1f8pnr9nretb70bE9B4h5LkbBUnL2Z9sGGprxaEB/BGDrZ034KjWAPO\nuxhS\r\n=qTEK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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-micro\n```\n\n## Example\n\n```js\nimport { microGraphiql, microGraphql } from 'apollo-server-micro';\nimport micro, { send } from 'micro';\nimport { get, post, router } from 'microrouter';\nimport schema from './schema';\n\nconst graphqlHandler = microGraphql({ schema });\nconst graphiqlHandler = microGraphiql({ endpointURL: '/graphql' });\n\nconst server = micro(\n  router(\n    get('/graphql', graphqlHandler),\n    post('/graphql', graphqlHandler),\n    get('/graphiql', graphiqlHandler),\n    (req, res) => send(res, 404, 'not found'),\n  ),\n);\n\nserver.listen(3000);\n```\n","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"apollo-server-core":"^2.0.0-beta.5","apollo-server-module-graphiql":"^1.3.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","apollo-server-integration-testsuite":"^2.0.0-beta.5"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-beta.5_1528409139473_0.05247003890330282","host":"s3://npm-registry-packages"}},"2.0.0-beta.6":{"name":"apollo-server-micro","version":"2.0.0-beta.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@2.0.0-beta.6","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"da5e33727da8befbc81dcc7b9dcd9169d11a9392","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-beta.6.tgz","fileCount":11,"integrity":"sha512-lyvfbBbrUQ7z5ATl/ifQhCkOJ13nvw9J8N7LWhPk4M0v0raUV9S+CV75i++0YecyF8XB+6kCHIi32QftnGAoIQ==","signatures":[{"sig":"MEUCICu1b+D0KV4uONUOW1wzIJhTrizbJOGCRqtCJHH3SeEHAiEAqmcbdOKf6i79LQSjfM0AeAZo0j+wxfD40/OrE+qVqhU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHv2pCRA9TVsSAnZWagAAs2oQAKGCQ5UbINbgW9uvLfCB\nSWT23e0McJCcWuFcR/VH4DbXRKKTbyQUwGugHGgsM68Xziy79IKYIU/8k96a\nt2bPRJczmYg1UVpg2nrT9KkX746LX6hWx4zzK901ANMkRmCkxhGbiSoIGQ/0\na00ejN+3+wTrI2TDtoKsxGGEwlpHmk6+cX763vYm+g0LKZKhI3woPCG39Y1a\nb7Woi6Pv+fYYFN7frlDqJRKeV2ncY/FEzlqPjVYjOw/8G/qps98D31vmnLXI\npnXD7VkGJqrLU446hNDhVnDVkvYS/iA/okhNkzXtpI5iEfYscUcrYwBfdnno\nJ7gb3di7pzl3v2UNQxgNaEg4En55xpyLaSxzCbBwaweqcGGtS4kF/uAi7hKk\nNglwDWGd2AtnMnZJqcKsznGSzYUP/ANBnuV35VhyaOdT4C3b9/vps4eolMU1\nvy3bULCdFLiWTalCp0DORiMvALs67TJWC8RDGNRhpMWC1oYiTsoF+ubqz1dO\ny/EEA82pRoiZqzoPDUD9VX2Z0aDqvcCr6OWugtKW09xWWSiDKZKxN3Y10bQe\naM1TSSv1GBbdgOFuVjmvVCc8c5q7QSFJ2iDQLv2uY3uPA0eF/7eYs6tcBGSO\nJFT9Wj/zUnbasKtdaGyL/isoLFLmG+Cbp32a9MXSRtOiUbKZlBO4YHla+KPN\n1kp6\r\n=QCZr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.6.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"9.5.0","dependencies":{"apollo-server-core":"^2.0.0-beta.6","apollo-server-module-graphiql":"^2.0.0-beta.6"},"_hasShrinkwrap":false,"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","apollo-server-integration-testsuite":"^2.0.0-beta.6"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-beta.6_1528757672766_0.20270020195702476","host":"s3://npm-registry-packages"}},"2.0.0-beta.7":{"name":"apollo-server-micro","version":"2.0.0-beta.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@2.0.0-beta.7","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4d504c11de0f93986f5b80452dbe949da29ad3c1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-beta.7.tgz","fileCount":11,"integrity":"sha512-b2DE/gzYC0zsk92LWvtbXu8c8rg3x2olfp3gm5us9Nfq+zVxD7L8ILFaHQhwFiBSOLwSyLnS+9/hZRIgFIcq/g==","signatures":[{"sig":"MEQCIHJmd1s29/U2CpiIEB9khY2Mv2QcGQzaA9SkxfQ14PiwAiB7TUfcH4YtnXnyL96If2KLOyziSXOqfv4FDH8VWGxfTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHyXMCRA9TVsSAnZWagAAdEQP/AqGgCOg8xtwwp+4xEfD\n13OhmkZ/msmld7VK+9Z5EKIrBgSMSGoqcliemqM1G1bURWCYbn5BICnnpIbh\n5YmtOXJlOyC5kcS4HlgpLmtftCPokRTOVf8u0q85uPu0lDKw5CdEQDhSuTzA\nYPgXAIyYWMbAvUVKhbRbdb/zW+yG99FoqBnd776j5iGWDBgpBIi1QND/Brpr\nH7l/fTvyLNJROFDz0cshj7VZwqlo+XhyHeGB1z3E6kPYpLoZv1GZdMLGswFg\nJgEONGuyLYKk8ujxv3Wvw97dR9lk7PamonAAoXkfzMtebhrre6dnfD6UNMHg\nEi+CCnL+EMoL4YflkylwaEA2hak3BCnOe3PQJqekpbudgeKo/SVIBYl12OAK\nkoEtX/vSPUeapidigx/9RbTsigjU0w2JTVFPhwomVCuF+6+0pX8uQyzI5BmQ\nslH4VlodEtRF8q/5UrBpUpsVOaQ0mbGngZKYhvCz2E25H5iILNLj/yFusY6N\n+XzfJax5vXsBqv7hX/gLwaFSa8Y6KCeSOEm/LSEdp872DRHjBvrGjLtvr1lW\nBJPe+t2XHQOel63zWyIJNoK3WAsGKmU4UJchJb3Fo1Lu9abF8DyxN/zAHhnD\ndlBNSwogoZQMqhnL9QuNu7yH1+x2rLyTJPPfVZhjQYttjCSo/OnnSeyISXv3\ngVIr\r\n=9FWV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.6.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"9.5.0","dependencies":{"apollo-server-core":"^2.0.0-beta.7","apollo-server-module-graphiql":"^2.0.0-beta.6"},"_hasShrinkwrap":false,"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","apollo-server-integration-testsuite":"^2.0.0-beta.7"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-beta.7_1528767948656_0.8721527414547874","host":"s3://npm-registry-packages"}},"2.0.0-beta.8":{"name":"apollo-server-micro","version":"2.0.0-beta.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@2.0.0-beta.8","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2081f6ab74c70566025b1312cc7709b241835fb4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-beta.8.tgz","fileCount":11,"integrity":"sha512-issn4xEMcD0YlGhPhs6jnY8Cnmg3LOtEuX9sy7dH35z4RFUzbQtcfoxFjSE81z0LXrd0BZSGKCQ3EhtWdSupQQ==","signatures":[{"sig":"MEUCIQDScqeg0OOfGcDpoYP6qBBDX5i/kle42MUi4OX8j0l56QIgXx/440kyCdh4Otw+3JW48dI7W6m/8mtIqBZgMZAtMzc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIGuACRA9TVsSAnZWagAAOhkP/1+bNYcnbDGc87Ta2Q+i\nIP6caKhcy6XU+WrUvKiI/qX2aiElRf6h2COaKraZkeQkrzYqbh3UuyPwqvH4\n4pFbDOOLRBhjGJWqxjgturtMF00oog42cufBg+t3BumTPhWtJU96goezL2V/\n8NKsx6gD848QUyQuTc6ShICaRybCgeUWq4Ei7+uv4zOldOyr93ma/64UuKmo\nlAE6Yeyva1Iq8+O/wAlCtMBPg8ntfXYOI6BXVlnxq85DH8PwjkmuETuxzQAp\nHivCnrEtzPPlDK9guOWUXmGpZsYOuXc16XmUAfN43HyAmgoyZeLMwn7R943F\nYi+46zXaBSgi50Aq4ER2leOK0WFqCWbnPAsfVVndvafu4REEwPHaQQE2utl+\nCbijtFcHdabSm71KibS/+CfCEaOEYNaU6C4osg3NmUJTBJr0BeO0JQayjTDT\nuUlcZVxwTH4FtvdapPGQbzLsPz5aWAhgIJptzK9Iz6r7GDM5uvkGAImJx1Ks\nqZuiVG01eXmWemMfD3hyJN6eAxFUn1riRE+6J1doEjyAlqpj1ybwQbQthJYz\nO5X8a4JoBfpDr/Z8ToCCWCT1DEBXULoE8IQDjhRNA+8ludqgCn0uTKi5fzbQ\ngZulQzOQqyECxX+xQWhjvIucoP5eCllGHXcQ/5epWhXO5RagrE2FcfCYU0OG\nSJWi\r\n=kktl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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-micro\n```\n\n## Example\n\n```js\nimport { microGraphiql, microGraphql } from 'apollo-server-micro';\nimport micro, { send } from 'micro';\nimport { get, post, router } from 'microrouter';\nimport schema from './schema';\n\nconst graphqlHandler = microGraphql({ schema });\nconst graphiqlHandler = microGraphiql({ endpointURL: '/graphql' });\n\nconst server = micro(\n  router(\n    get('/graphql', graphqlHandler),\n    post('/graphql', graphqlHandler),\n    get('/graphiql', graphiqlHandler),\n    (req, res) => send(res, 404, 'not found'),\n  ),\n);\n\nserver.listen(3000);\n```\n","engines":{"node":">=8"},"scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"apollo-server-core":"^2.0.0-beta.7","apollo-server-module-graphiql":"^2.0.0-beta.8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","apollo-server-integration-testsuite":"^2.0.0-beta.8"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-beta.8_1528851327261_0.12372648720666946","host":"s3://npm-registry-packages"}},"2.0.0-beta.9":{"name":"apollo-server-micro","version":"2.0.0-beta.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@2.0.0-beta.9","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5a0e8c4dc91e71ba0db3e57a8ab403a983eef4d1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-beta.9.tgz","fileCount":11,"integrity":"sha512-MNjNxvGxk57BkgXUrNws+uFsQclPt+Ytu8oJUFCJlmjr3Q7vA9lWA08k64wajqe3LF44hMFg3XOw4rmMOa6wiQ==","signatures":[{"sig":"MEUCIFZtcxNivqkodpFblJYhd3eqPDIySvYU+CY5+E5G6r64AiEA8LttOqX1Ifkdj8UnWMQbE6SxzLH2+Oha+VgnFw6X5zY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIWbrCRA9TVsSAnZWagAAl5MQAIlysI2aVNOX9WyH8emi\nBRvzsppIBUfL/uRDYuwkR6NSKJ0U+lD+Vqx5qEeI8cYGxqRUKrpBy5Hru5Nk\nYpit2Xkqc91aNttGweain1CANEE5ZGT5Gx58N51wTT42GY4vG2wb0gUeFqSk\nruOMHEweitvqfJStD9FEgBZClZGHt1Y7NZejfZL7pC9OO0DGpDKwNdSjkom+\n2dXBoXhN+dEG3V7MWEDeOMw7OLc4VJXv++Hb9Hug5FkdBHZhmBwWFZojqgWZ\ntjQwNimfdfLlsK46Mcp/REslyYZrp5p3qFnDN741zhKrxan/P5WIzz0vfOPG\nzzq4sPoT/Zp+RivCx102XL05AXEhSUJod60FM6/AwJx8OAY/5e1K3ueqMye/\nNKIRMY0oG/3B8xfvDkGQXOI42oz8xlibLtKkaOLuG+Xe/d1suiFLA3t5Wcjg\n+aW0Wijt/8HozeAb4W1nEA0NM3/+57hx1gZR+yBC1jXWnDM2V/JNKKO8DL5c\nNNHRmn6MUUHmi0X7xqqrCspf4+jWqmMuCfIi06ObMA3y5rGGc2jzFFJsGfe1\n9ckRKWmYUtGbKL4iUXG3sxzs+tt6xm5wCRcS7nqOBHhSA5uQnYmtGT8RIqxq\n9W3pKN5ZiroXAMro5PPwpzSkXf1cR2VJnuu7lBmn3JoZS+zAEUWbC90WrY31\n5w8j\r\n=ogrt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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-micro\n```\n\n## Example\n\n```js\nimport { microGraphiql, microGraphql } from 'apollo-server-micro';\nimport micro, { send } from 'micro';\nimport { get, post, router } from 'microrouter';\nimport schema from './schema';\n\nconst graphqlHandler = microGraphql({ schema });\nconst graphiqlHandler = microGraphiql({ endpointURL: '/graphql' });\n\nconst server = micro(\n  router(\n    get('/graphql', graphqlHandler),\n    post('/graphql', graphqlHandler),\n    get('/graphiql', graphiqlHandler),\n    (req, res) => send(res, 404, 'not found'),\n  ),\n);\n\nserver.listen(3000);\n```\n","engines":{"node":">=8"},"scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.6.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"9.5.0","dependencies":{"apollo-server-core":"^2.0.0-beta.9","apollo-server-module-graphiql":"^2.0.0-beta.8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","apollo-server-integration-testsuite":"^2.0.0-beta.9"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-beta.9_1528915691126_0.5777735713634018","host":"s3://npm-registry-packages"}},"2.0.0-rc.7":{"name":"apollo-server-micro","version":"2.0.0-rc.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.0-rc.7","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8fc9d8667497925315fd0bfe86ace2b5e07efc26","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-rc.7.tgz","fileCount":24,"integrity":"sha512-HN5m72JPPLcp1WSzeO317sxhUl6wunCWyvdDecGtrg9W3OrOK8qRDWCaCp2B0PqFBnA2Gk/prgoGudubLFOFbw==","signatures":[{"sig":"MEQCIHLnyrcGtia6T+bEtjFT2nK2xQ+krzKQRs7QraCl2xo0AiB/21+9Lp96HFOHOptIQf18DH+gLKTCEkp0jp3dqM9Luw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRBsgCRA9TVsSAnZWagAAecYP/Aus5YGWnEZL/THKDupC\nOSprRUZQf85Ax7qTzi0dNBWYNKiEP+ojH8lZO/9JFZiJV2z6ZH5suASOy63e\nqeMsdiVdjJUrd4BbSwtHhqKfaCrAO1o8nDZlSDe6So7xTgJuXt1CSNZLk4UL\nULXrUR19OS/rooIvUt3tt4uKjIuH+ldnT92DjLvq8q1HfKq3x6g/jxg8Tv0Q\nFyUspOavzfOHXEzPx0JauLF8SOtrqrZV3jM4Ukm+05S2JAZ5DhvC9tcEasy2\nW7MXCEHROBGhnSZsjo/NKAaRf1+sCWFgJ2DyRa9BWoU6zfVmHBCAul3c0vak\nM5crH0IVkOxEedLWIONhI9y2LdgsAl6lpY6Kx3kZvwTYP10426lHSjH4BiS6\nrmR/1B+/EbaGFAceteQCPMj4niPfEqcsv6z1c9WrQT5VfkWStEajZoWYBYYC\namgb4HggOFo32SGpxk/kZeKtGtk0R4N/tM0v8rv/8k7G+8I6T890CHoXNwVH\nROKM4jlNI4X1jmy0Be70wzgxGK19loughZfbOqcUihvf2cL2zaqHVqhEMZv7\nQ0SepTb7ltW+gk9+SAELyvkzjRTvkA77IFG8/UIarYipquuLwIbcV6zMYpMg\n3OrNlzuyxOrEvJVS2h2Tq2doPXAm5zOSDLK2ETu+5LZb0inxOOQILfy/H4IP\n6qt2\r\n=bz+/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.0.0-rc.7","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"^1.1.0","@types/micro":"^7.3.1","request-promise":"^4.2.2","apollo-server-integration-testsuite":"^2.0.0-rc.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-rc.7_1531190048627_0.5678334624414547","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"apollo-server-micro","version":"1.4.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript"],"author":{"name":"Nick Nance","email":"nance.nick@gmail.email"},"license":"MIT","_id":"apollo-server-micro@1.4.0","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"45406c50474ca938d028242f9cc4cc269c235774","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-1.4.0.tgz","fileCount":21,"integrity":"sha512-6J4HYtZ30PZ9ZxpT4YTKP49mJX58lXRaS05POizMX2cLWA/QNscCenlHTSQWB5/ZbBc2r+3niKv/0LiSvDJ2nQ==","signatures":[{"sig":"MEUCIQCa7FBCpbrtwsQAfMJjJ30sHTm6wwcRsbn2nXmhSmqEkAIgXqS74Hds6a6RMpnXv4YHu6lnSeCrTsTV3WwulH6b9pE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSPWfCRA9TVsSAnZWagAAUvUP/1Y/TEMQdI+FlceaiuCL\nAKPJc7XOuuYXhwCeubP1my6KTPuAAljH8g5fYBlArgsME3RoztR4OKvCJRbj\nFKhfJIDMJoq0ZFllLKQGZBkwhlOrkwcSxNKvyqRK8QNwl6orIz42nNewrjch\nqbPO8C4qiF2HJOHVCG7P2pgwMO353tDvwUHFYg6k4CsJbs64alybDtqJ7CV5\nL6wzf7kgF2MRA9FgaGV6odVCrvWbex0YUf+tzBNF0DoRP9WpyUzB1MFONWzT\nWpGMqFj3/3VpmMTC8MbjIa35JS4+YM8KaDh9kgshzl+ZmFUUP5CeDPVKpBdG\ny5ptkQEKhxQIe+p+UvJyFw8lo9BCkk2YD0ZDfK5GUWzS0HMroY3nomeembyw\nB+hsAR0ZcL1AVEp+sXs4E5BwZqkNGEnBWbFhr6vYwiBNFqc5ssHHH0i+vqsu\n9VD3y3ERJiL8xm/+2LR+TECnKygI13pxyXjjh+G5ffk67HeBSFqG13fYRPWR\nbfGU01xqClbKjdOJ3BpeRoL2w4js5HOfJfR7oPkbIu4m9k0nF2+YHyCNEZAy\n8vkiWRyYYPdCsFITBQtbF85xU9wnmiAoH3GT5iu92PMHeQfslepG51Pu31e3\n+11Lnz8EBx3Qe+2m/Wx+lZbjBfHW1QK7Ncp80Zkf7JqTmPmwXvQviQtI9Cvt\nuXrR\r\n=CVZR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","scripts":{"compile":"tsc","prepublish":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"apollo-server-core":"^1.4.0","apollo-server-module-graphiql":"^1.4.0"},"_hasShrinkwrap":false,"devDependencies":{"micro":"8.0.4","microrouter":"2.2.3","@types/micro":"7.3.1","@types/graphql":"0.12.7","apollo-server-integration-testsuite":"^1.4.0"},"peerDependencies":{"micro":"^8.0.1 || ^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_1.4.0_1531508127103_0.46646343705301496","host":"s3://npm-registry-packages"}},"2.0.0-rc.8":{"name":"apollo-server-micro","version":"2.0.0-rc.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.0-rc.8","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"adeaee573e14aadda86b92b25c390d910d576e34","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-rc.8.tgz","fileCount":24,"integrity":"sha512-towiIG8yeVC51dW9OizDyQ4oEdHtI/ZHYJLQRlxxifwFCSta9Q/khF/beu4qE0PC2wObBPn+PiBMZlX0l9lSbQ==","signatures":[{"sig":"MEYCIQCd+OeQTsxelKTbmoE0r2jBzFFQyheQXdEAI5zw8ZrnuQIhAOH1cIWfd3bUg2BLpZeXXUIMI8KQN/O2nGVI/tGUzBex","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSUjrCRA9TVsSAnZWagAAVRUQAJiTlvh5DlIxBf3rRjUm\npKx3g//xS//uohcf6pwCyKb2eCzRB8UsQIM4JlpkTKlrDN33qax3zydwvgmt\nwt4kSFx6LDA7Rh7DLqb3Hdv8eX8h+6DtE21ga+K6PF60lJGWyUItazPf8JO6\nf4Z31FWf/U7mcj1JXS7poc6o1dEEbBlEKP5wjRVClxjYtFfzReiRiabc6T+d\nnOnha/0gQ+8d5t8W5olRBVR9xlfLTM5P0Qkx7/YXjOQNGly+8SebMjkA4vGC\n2mXP140Lw03tAwq+13zFyesgPfrmK74ilAdL3rrYQn/d4H4s+9n6yQRZE6Wo\nf1t9i9MYqnrkJU42ZubaetLCo+2pQ6U0bPENr25duwQsSbVd8Jb/wyVCjY8w\nN9AEJTw4PXDfzC6+k0GBkXIuURbEJIQ+h8pXA/Uqbb7X85LYdVVs4M2HCRLD\nMqGDiPDW3+D/H7Wgn1eiYgyENr+v+k97YV6VURviYkfoGLwf6kI4Gk8pO/4C\nIZcubhXwUgZ0opOi1fIR30s923CEGRTGGNl4jKV0Xms1ES0AtdHWUljbvDw+\nmvFH11yvRmHPCevcd6uS0DET/CAI0RuvwIO+wrzMfHSgx8mBppkbSttdYI6Z\nkjHV7DQoTcTotPFUA1IBGmB8qwkGlLhpIyZGGmtlKowIwZQdnXAGH1LO2ZcU\n363v\r\n=lKWP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.0.0-rc.8","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"^1.1.0","@types/micro":"^7.3.1","request-promise":"^4.2.2","apollo-server-integration-testsuite":"^2.0.0-rc.8"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-rc.8_1531529451462_0.16650673545199535","host":"s3://npm-registry-packages"}},"2.0.0-rc.9":{"name":"apollo-server-micro","version":"2.0.0-rc.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.0-rc.9","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2f8f8203d8204c2e04ad8b45a88f28787742f166","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-rc.9.tgz","fileCount":24,"integrity":"sha512-Uu2zHyrCuzx+g5JMHqn+zMqL8FAf1Hs4NtXJXiAylTK/hYkkiSNLoe0/XM1ye14WRH30laM0I+fqzyQ6mhVBqw==","signatures":[{"sig":"MEYCIQCxBDiqBl4EQdaI9zAJznDu/dh1mqc9WYUdUCKqDmWXHQIhAL09M0ZPzAh66pWAC63FIaHBpjbW/7dCkwXqSZXOd94f","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTiu+CRA9TVsSAnZWagAACq0P/0vrXTDt4+01A6azgzK9\n5sYrpWDyZ343u4/jls80/IxIW8FRpr5OL1vLfw8JulanckxLQcNcaoNQ04dq\n894MJHyTNQg5VlRXNImOuCt01R/O/97FN4+JP0FXRc6zKlIvN9KpTXCx0e2g\nTKWlFdV9Axl7MwGNWH3wU44X0pdUou+wLIRdedeE8+Nyv1jdF2joou/t8fy5\n2UMXAW39MM5u1OgEjOxMaStu4NdMB3AIXWRHxfkKHtF3O4qaTc81l5fYa96+\nDtiiQeuO/ciM/Ot/D2obYavPH4Z5iGs+T+xA0ZLK4CF4eAPY2Gs232KaObPj\nDY7s4GTJlkXFZ06K9cNmdz1aLvVcW3suXDg+HzlgUqXD7ahAVh6WFk3tFPBD\nIx9XOS5yo+cTykx6dy7jsVYrkmzlYdV9bbDnVeYK+6OeyuZlI4eh7UBHP6zh\nnZsmVCcCO4LTf1d97JE71JsXveBWx+l66Bj6hlHeLLzuVXxkYzhMGTqW0TVX\nCeBgvMFHqfAUJGGf/7Pete/JXDrqHFzCFVfADMzqlwFOItK1jUyeNs4ugOnU\nbNEMEdZxy83AcShFTqLoQZqeC/F+jIHRhs/bw1MsfJTcazlrx5d8YrqjzwgU\nFhMuSaSQvYbTeiEQon7qy7Wk5CCPxDZJrAfRvJeutoq2RyqkW2TTBSwIhl/h\nk3fI\r\n=ZpsI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.0.0-rc.9","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"^2.0.0-rc.9"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-rc.9_1531849662158_0.0029660218667315608","host":"s3://npm-registry-packages"}},"2.0.0-rc.10":{"name":"apollo-server-micro","version":"2.0.0-rc.10","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.0-rc.10","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"bf4162d3d6cb34b664165480672e25862a8c3d44","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0-rc.10.tgz","fileCount":24,"integrity":"sha512-Vz6Rgf0pKurqwWu2l4q96qhLq4gEvxfEUJQ3GOnB5nUJGcJQKh9wmrPtt8SjlTyZNKAtxel0gpsMAozReqKc6w==","signatures":[{"sig":"MEUCIQCyjWE3sf+EB3fap6VYgfizeCtmcPSWE+LL3tzunSrTPAIgY011dqWZHplXVWSj+9d1RdpG4Sjuozc+g6CQsHZMU3w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTi4HCRA9TVsSAnZWagAAhGsQAKHcMoRtBHW3+tKXhhy9\nie0JmxhjKbjNsJRbnuYOV3IrmrndmzDVO7P7Jv+t3kk/tp9weFgOrG27/J1m\nswCmdyDlYTdxWh1Az2/QcxPZOgLVcw/dBXvp+WUr37x6tv8jzWrFLBEJ0Kvn\ncu2Qjzi1XbGxr+/vmR4Vw+CrDQfuCpr1R8vmj6Wf+A8aK9lTSX6a213N+SxL\nlAn3kdXEVk6ASa6kj3zRQ2VyNfLLRF5G0Zbm5GdyE1gUs/n7K1yeLWhe9cJe\nArCQ8vIcl1Z6zYS05OXTkuA6zEa0+I0lUgSBn2UklUAVD+WhFVv90hMQFHfX\nxuVdR7QNYbt7/aRG5kmT0L54RlPsCdhSRZXl2G0evmBpp9ZxaShEnvZO95gx\nl+RKO+Vx8GMSc+sGxfDWmJ9+vK354Nq58rqjGvimLr+M9wVax9hB9o2Dk/A2\nGyckECFoEc4lnCFxclIjqlCZiIq+KkwanqX3+637xNhBN9SJkjat81ZWsuHD\n3wkWFb6frAvJHeaTSSc+FtNzfzuBvMBGt3dPgwWcwCiVPChUfbUJFzsP/KMn\nJrZvcuJsC3z6OyAopMw1MTPDOo6W25bcTqIDfGiN0GHcuqAaiaSYw0/hBbhL\noJsUSa28q+4+DPy/Zqhcj5T994Mfcsk++rwQl5D3PE534VxGAnUCZuWjEPCM\nbV0M\r\n=xs4Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.0-rc.10","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"2.0.0-rc.10"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0-rc.10_1531850247823_0.7293539947632142","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"apollo-server-micro","version":"2.0.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.0","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"89be414b2868e74b023ecf423689e95b38682b96","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.0.tgz","fileCount":24,"integrity":"sha512-Gfdl47epIeVZhpYUmQWXT0lhFIoQwFmn4vnTfr3cLjswUQ9ms59Jm4fiNNKfU+CKM5mH5PovGyxPgKnsrjP6Iw==","signatures":[{"sig":"MEUCIBQGbeMI3crgrhduhVzB9cO6Xg6XcxbxNxiQqAMVX8OQAiEAuWzCN971vLs77cmR9LWULnxzA7EHECznRCg7VNBDmA4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUOvJCRA9TVsSAnZWagAAm2sQAI2ufs/6xV2jjVD32Dk2\nJbuxXn4PaHq/wqktlfZ0wmnfzfGgM2Y056/hlky3RtUmSY0oPkiF7ZZWY1TI\nJRoLlzIWgdBEthNqo1HEw1utOcwILpLip0KR5b0ZnlW1MyrEcfyhQSWP6tzk\naaZFubldBAJSCtiy7CzT8u4jPFDlYDU57zCoMxFWpz4pHSeXLIhfMPOQqk40\nM6Nq8NySAgQpQtlKoEf1sZ/sIpVXCnjpgbUJiUVWcyOBkbAK6oTIS8N6IhOM\n5Oq6OWDuxxjBx1HjeE0flPg7sWb8siS9/mJsr4pVclA8BJAA74jk1mVBPImV\n9y+autnFy9NHpSWCqAnoR8XWH8Zy7JUy32JEUpkHciDUEG2x22e45NrOshnQ\nLEwk2brMVLzxLaJIQLxZjJ+aD6FQj8Q8nntgvLMhZsq2kSi9pLooJenUH3O0\nC07Q4fapCXZC78hLENd1vJVrLyAqzfAPdfdOCkajW81GUPEHr2YZbGFmIuR4\nVM0bTq0p1z0BIXYdMld4pvGx2SftOPEi7JdaCpvKBZOFhDcacpyZqxvvJuuZ\nYLFNFsrCBmVIn85PYvSPT/0ojVd/ShNEiIbiVMbptucT8IBizhQGuPPsBSbt\neeMITNqmq+iYoil3EQuSgALQX6GQhbWW/Y6JyBiLCFES1trqvFC1DezdPW7T\nPgG6\r\n=OPf3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.0","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.0_1532029897045_0.7328064903238476","host":"s3://npm-registry-packages"}},"2.1.0-alpha.7":{"name":"apollo-server-micro","version":"2.1.0-alpha.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.1.0-alpha.7","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f73228b545b3844234c093161ff42f64a83681dd","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.1.0-alpha.7.tgz","fileCount":24,"integrity":"sha512-EyJfpgi+ayJEBX0ZQEXPZY6+YJw5PQP3R6Mwi3Vw1Kbt96MQnzpjrpWHwCj4jHgaObb7GesqJAg55hVbEzMQCQ==","signatures":[{"sig":"MEUCIBZv9VAjeXypIIYLw4ahJxz2RIZQxoE9NSAwi1UXXnkKAiEAs9eay3/Gnj/R1RP96wZOWk6ij5wFY0EzHHe34QAavEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWiGHCRA9TVsSAnZWagAAhg8QAKERR0S/ML0LiXeCnRbw\nnPyDGfnTnpmI6kk1ZqjixEiJJlP2AkeC9eLYZgctTUoz5Y4aI2TWD4mZmDrK\nVPb+8hak7DyCBWhjjYRMDDdrRl4a5HStvwbneVkIIRb/+Xx3/eyL80j6uK0a\nszYFXRRTH76uvcNgr2dSOh+oqH09xIRxZavGzQZ7yByE0OLR/YcQ1nDEtGRh\nB5mUTq1bEn46dWMmMm1SKxPAnqBEW6mYL7f6mel4+2ubyQ0CieslTPqDOrRD\nkVIVLcooOtacx0PVBRJc8O7hmnHOaarOjLrpWniAaq7rm7tad+Hzyljw7bje\nm+b24G5qO0yAwS1OVOCKpxIf4Wx4au2Ay6+AOdiz2BsCySb6LPgECeNhcuX7\ndw9h/1UZNunhhIhuDbP8sJMKGNXzVK3Tgh40da7YwCmoUO2ggsZgYBgl3ku/\nC2e2eHBUKZ2HNzMPSaeH94XgS8pI8h1pjlVpzBeH52pWBSgE3M1tb4ZQBfIQ\nK2AY3Fjg2EckQ+U5Fg31Q0IAI2JcboLWECrK6iaIe9JZmbimctA00jAnmmZw\n/5i4anLh1inu7xnSUn8X4z8sS/tqHtypEMkDvJp/SvtytjZdjtplaUmP1ygq\n61WKJEmqXkxs4mRy7oI4yqeBjDNw0xQwonTeSsIa8HPttQy4s/uaQ1239iTg\niRto\r\n=85q3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"6.2.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.6.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","iterall":"^1.2.2","apollo-server-core":"2.1.0-alpha.7","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.1.0-alpha.7_1532633479125_0.10783432841208218","host":"s3://npm-registry-packages"}},"2.1.0-alpha.8":{"name":"apollo-server-micro","version":"2.1.0-alpha.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.1.0-alpha.8","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"94be17fcfe7d941d502b7482ab6377082b17dc1e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.1.0-alpha.8.tgz","fileCount":24,"integrity":"sha512-0W1NBknQ4IxFJY5bAY9rmGu/IJ1vcug/ofkeyUX+uarYN5yiCuiey4Xkfpmvt9Xi0GJiu2d27FHfXKDg66l67w==","signatures":[{"sig":"MEQCIHF1485Ja0qhGenpKiV2QBv3ZjPCunEQK1EtpwJosZA6AiAfhJzUQfgyZdXMiMOknlyHp0S2oWGtHUTX7TEyluf5mA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWlNKCRA9TVsSAnZWagAATqsP/iqATbTT7sDZ6W27pjVU\niys1+1iykBwnxUHYpuiswKi5BvL43eWXz2BzJftOFyYfgIhcxgE955JgWZSw\nwOqsrvE6TmYdIBn/MkC1QbFcjSYvGFkvdHsewV9Os9oaKPNEHYnDm0xGwmnN\nnyOD7ExzHLcjIsHMduiW/KKDhlpS/LerFE1m3MuXy/zNJSFWbzSefX+oYCQD\n0fBy8Hzd4wLHohcg782RrF4eE1zMNjHnF6iWppQA202s5pLN3aESD5JR4sKD\nDenm4CFbYkvMqM0VlACFvJJ7tOmydaTqbhnb1qZQG8hJr3D8Q+4cHH7QWwsm\n7vXrXx6J4oBiTYYQ0DWpGDEhSEzJEy1rjrb/neBy2scJJjK4+t+CQnuPhHYK\nd6IjA/sK2yNvDYTQj/DtGCBZZJ2tE0MULSXtkeB43Y8GEjXTtXK6R5XHDVKW\nBlDUDbd75sJNO+MTffI5ABP5Fkbm2/xc4/J7CcWeyYZcdbPQz39xz8XE4Czh\nOEbjaJ/zfd31eq5XlSLZyYWlxhu6Hv0/N4wT5Dy+AzDhhAFVjjQU+vtJfhkX\n9z+7uJWaxLFyvkdcQHho2w1Vch+jyBexaSYtwYZUxQL0HKgMLt7PIaduygUY\njnLaUGea2kZBpwpjm8SM0uEwHOrRhd2esOZ2O6B4F/ECY8GxmowUYtc+oQTt\ntdiV\r\n=afE1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"6.2.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.6.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","iterall":"^1.2.2","apollo-server-core":"2.1.0-alpha.8","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.1.0-alpha.8_1532646218086_0.90049374207846","host":"s3://npm-registry-packages"}},"2.1.0-alpha.9":{"name":"apollo-server-micro","version":"2.1.0-alpha.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.1.0-alpha.9","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e5c238ccc0233f6d337852c32443b3d75f89ad53","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.1.0-alpha.9.tgz","fileCount":24,"integrity":"sha512-reYInHKdQ5BwnJ4YGTy9x0vWu8OvxrnrtjDV+/voVTZZGvxSDzTkb5Fe8sILAMZi5/WICEm/O1kAQk5cijns8Q==","signatures":[{"sig":"MEUCIQDcd9QrqXBtv2mmmXpwQ7LxmuueqIQAovS2My2NBGhJngIgereWH+VR+jinEal7Q/D14iYWWTfZxhYN2gBVrmwqprc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbaMhRCRA9TVsSAnZWagAA8CYP/jgvX0gLlMN5+zbX7woW\nYRTLLXQMXUUURB+6Ygk9/VJKXcT6aAwcHx9yHaCd5B0Cq6xpGH4l6WiAtHZt\nBEyiykEBsNYdvimUOAogS0BiOfL29X/ogp3FmyPczgfL21Zmow+N+JrxUYu0\nw/PlUfALLXESh8OvoDBgE7UtesMnrL8F4Pnea6pJmlFN/Q3bymOs2DWffpu5\nnFBJQ03U6FETgI5cqmbIsWj/XCoHduJScDjMZi3FA8XR74Jl6NTDaE/YJZ8D\nzAyYHuXhFRTrc+KPHNcUcW/PJC/7OqoZgvrLaGW9uCALmy3ruUhSxeXsbu/V\niwlC4ixrPNsfIb0Uvg9PjuTRAUFLHiAFjp+YD/TR1+kFChive5Ad0P1cGAdq\ngR1x+NIoY/lXcLDubVLm8S+ENLDBKQLnBIKPmUHO/G9cuwHErYazAucnzxwD\nDTs8hUwO/PBN2v53ihZLk3desZhwUN0stCcNVGOeEV2bGVfVzDIVQnSLgVBU\nzt47sJ61Wq1YxinW2LN+6WXU0lueTHOWQU/7wRY22SLANiTmtPRjUoRCMtN8\nUafDkz84pjEFijZsPUzOb770kHYqfvPnTePFE73vz+q5t+609SH7rlzENkoG\nPZvEfVmwIwE3lUS3XKgnFk9mWUQfAt2MYA+a67xMYudrxaL0GbT78yHMnAep\n7JSO\r\n=uVBr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"watch":"tsc -w","compile":"tsc","prepare":"npm run compile"},"typings":"dist/index.d.ts","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"typescript":{"definition":"dist/index.d.ts"},"_npmVersion":"6.2.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.6.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","iterall":"^1.2.2","apollo-server-core":"2.1.0-alpha.9","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.1.0-alpha.9_1533593680784_0.7213106283647457","host":"s3://npm-registry-packages"}},"2.1.0-alpha.10":{"name":"apollo-server-micro","version":"2.1.0-alpha.10","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.1.0-alpha.10","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"84b9a397ce46ec83440d458822fa29611bf2f0f8","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.1.0-alpha.10.tgz","fileCount":24,"integrity":"sha512-yCZ6Fb3uhwTpYU7OWYnmVgGgsXIR9EpKZ0iV44g2HLUmR2qelR3drax8ONEO9aCBPSWdPtgsbso9qp850vTQ4g==","signatures":[{"sig":"MEUCIDLZ2Zid5RGwHxYDHSvpEyMBMlcXAISHgpckxObUlihWAiEAjdcWN1vpAi/Ba+SZ1UTEv0wihh/pikxXmM25N4MSOFE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJba4ymCRA9TVsSAnZWagAA4CMQAI76//gXyOngE0n2amlr\nKcmLAl2euQJJ/WaG5hdZ2jix/Aq0FTukf1+ghPLlLaQMWDdoJ1oKRwMzK5K0\nYI7tTjQ8L0+ZsskLRGekk+S+0vlphOryP9Rrh6qelxgVi4ZbWuT8BBk/LgZa\niIhObnGkxdXjbSumEO+AMOzfDcZ3Rq1LJ5bPT9cH3Gylilbii06qyjQytr3Y\nWLv25jX5cp9HO8EooCzAuLHNE4/0JHOPc5Oebur10HauJpxO5P3mkXtRpUGK\ndjwHcyw0FQ/vdEcePTvweroKjCO4inHzfEbn0kSdLI9RyYpdBOKIT4q5c+zn\nGgJUHEqqU9Ohs98F/6bdS9+63SenoZpfpYEwxdRVQjscvdCNnzpGJT4hDZy2\nsbMgAUeg7CUqp+Sl1WXh0tRKbFThe2j8FOJZaRfPaZmpL+coL1iD9TanTWg9\ndv6EAsJmCEvvXGuwi4cWKjWJ1QIxG53iz8idckZz974aCv1GilT5wIPaqMsZ\nCypRjUEHNOsyFXnnnndxuZlsnICjOKdqFjRoR17huQA/QQ305CBdpEPSlNcU\n8IcTFBeZamNmFjvJVN2LeCSQJN0agF3mqn5yOm+TGadFRUtkrC94Lq+wwYF6\nVAh/zJ6DxtIOUj4VplUJOHOHyTO/YPcIoHFJ3zfF63HSjwlN4ZymFKqhYd/M\nA4iQ\r\n=g4Q1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"globals":{"ts-jest":{"skipBabel":true}},"testRegex":"src/__tests__/.*$","transform":{"^.+\\.(ts|js)$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","js","json"],"testPathIgnorePatterns":["<rootDir>/node_modules/","<rootDir>/lib/","test-utils"]},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","scripts":{"test":"jest --verbose","watch":"tsc -w","compile":"tsc","prepare":"npm run compile","coverage":"jest --coverage"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.2.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.6.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","iterall":"^1.2.2","apollo-server-core":"2.1.0-alpha.10","apollo-upload-server":"^5.0.0","graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"test-listen":"1.1.0","@types/micro":"7.3.1","request-promise":"4.2.2","apollo-server-integration-testsuite":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.1.0-alpha.10_1533775014747_0.6766681180474072","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"apollo-server-micro","version":"2.0.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.1","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"85e4000199f993b280c3f652691ec39e0e4f0854","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.1.tgz","fileCount":24,"integrity":"sha512-MFF39sopApVrR1L2EkxAiE9n++zsty9bHvYisjMO8nkcyB5+CjtUr32svQeWIrm1XkltqNrfpa4bMnldN0/8CQ==","signatures":[{"sig":"MEUCIQDkfROpHCk27A7RnYaQNaTYHu8JJ5624fdAu1CjjVRIJAIgKv/C1SQ75fH+CMr1h6LTt1YeXSNve+aAarCDsL/KZsg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37986,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcxogCRA9TVsSAnZWagAADvMQAIOQrk2bp3nWIY9jIBTN\nFdWILE/R/m3CmxAcbhQArJE9qlcZCm24bkmlFySAV3mYnuv9z8O6NBkwcvgy\nrpVY2l380kFRhYfUvv9h8lU+yoT+k5F9hfzwTcMKV9n/LwWAVouED6r4DB/3\nFqt6TKrVJGjazLp1wrfCmDndSkWFPfzcHrAVGr+kkQxNp7BFdwcIzZt+j/tF\n1eB5EBKuzmUQbIefUOL1w/CCUUk6JQUS4oI1+w8+ejOY1ohfz3me9/wW1+J8\nMFAUIYG15OVhDNZ99aPRtv7LEG5rx8KpgYLVlUHcLPQNnsmeDPRos9DOOng7\nbZR2DKNy7dgPVB5HKkWh79UDiPvk01xPeurMP1s3DCxbu/w56LL1Zjsid6yt\ns7tWIv7l7nf28wJlRp3BH1GCS4aZZWcWiQFmWbbuDc7QuRbN0U3UVbFDJEDV\nV8au0OBcS/AhunAt5gi8lPBnY3KeQZIEczF5j0kEs4PhjIlSzivsZ1cRQhaf\nfOiHRqPTVodTtj4ra7JVwXu91p0k9CMcjSPAwHSJVZfKzizeGFPxNzemQRHc\nnAwJkTwz0Mm5snJ4RgSjo5tSBp9FGBncDZHlKWBEVsOV+vxiRbU+R+YdVLsU\n1sT3SbZ+R+Nkj9drPC7acJsFrAbvarNiE/Dx9/pMTAXPN3ccUHpwhWERqIbs\nAY2N\r\n=DS3t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"5.7.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"file:../apollo-server-core","apollo-upload-server":"^5.0.0","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.1_1534269984129_0.0431369022638155","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"apollo-server-micro","version":"2.0.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.2","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e609dd65f5e14fb28d71bc511f4486d59ca5494d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.2.tgz","fileCount":25,"integrity":"sha512-Cr54PsfumvLKDu5wL7y/YEkfcPhXEwH4Ycx0os+f003++2c8MHs7D9F35TcbNfz6OYtiOs0S08htWNXV+Zf8nw==","signatures":[{"sig":"MEUCIFib22XVU0IW3pN4arpTxqXyhHbp2JFx8pgudaroAT7bAiEAyszkeYLhTl2ttk4IiGHiYKo13+YgrfjjUstfiFGhh2k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcySICRA9TVsSAnZWagAAmpkP/2px0YX4sMoB0b1lJSkJ\nQxndfhAzcglPg/UlAwBlAeVG1kMNK315XJeQOr66uUTnESyyeZ7c4YLSi8Z2\nD9+62Cyv7yXs7OLfTtbCSQk0sy6giolg7zKy8LoWndEIz0M7Re5kVRoJT1so\nu3awu2dxTexyTu3SGi7zPNpWWajwhStSzDvMbIC24gxgbGxl5DajvPqduUp7\nR1EuAO5Olf6HZZpAPqgXryvq6eNOaoahvXT5oMCHdp9dbFpMyjE98n7fuARy\nLcUK4kRXVvGNARSrcl8VF/TLe8fP/XdwSM3xgArRG6Q89+fKNycOyY70e7Pq\nSEq2ZUDKy9ywC0dWjhQk8xw+CNFNPvQxAJDslFRS6LKQ4PNmzwVWOoQ3uPX3\n8dFWYkbq4KUliaCW17IPBzYJTUweXM6jkXutondvg9W8by3HtSmov7Gch3Hu\ni8gSvAp5Z29D0STq2mKfqPSh8L8VQnu36icwbrK3Q2SfjwUWYB//ZmR3Ot2M\n+Zl9JyIDft68WAbLlCslGom0mLxzIjYFiuyE/WsOFCnWU+OqE687gZp2W7UW\nMB9G+/sIqAWgLVpnAsQrRd8S15IHF7UelPWk1fcQYNccL1aQeQUnt5CA3dEP\naWBVPYvwAgI6Wiy3Oc0+wLveymVoC+FcWJgmwHCeQhRMO3h5Es0Tf1YbLNJP\nFBxb\r\n=JcuM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.0.2.tgz","types":"dist/index.d.ts","gitHead":"f7b5d63d038384409fd4d664a3bcce04c721bc6d","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.1.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.5.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.2","apollo-upload-server":"^5.0.0","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.2_1534272648116_0.9442398100860105","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"apollo-server-micro","version":"2.0.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.3","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2c4c40f002acfaf8120d248988418ed8ad8cde7f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.3.tgz","fileCount":24,"integrity":"sha512-ts1CZA8a4aPeSlZ3V89oU8p4mvhXh6C1lo+iq/i9L3UvTRTCRvXC8lzkVXZs7Vvikur0CUITjsfD3vFDb+w6cQ==","signatures":[{"sig":"MEQCIGwBM7zVtKEnxIukN5h1Tlku6fKJ6CsFFa9rhMNf0gLYAiB86mgkDIkLVslZ898cur0yWgjuuxWc5wbZatqNSrcTQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdcz+CRA9TVsSAnZWagAASWwP/2SN2psTIPvDCA+ajVNr\ns3Yh6dfLPeklHQtuI3OOcZAMKuJkgMal7WWFe6hhGG9yPPjWLV8R0vCcz4L4\n93bZc0GBwZ4ZjRR77iGGH40DQUKmjNE6IpOZOAFchBx2Y3M0GuTblRgalqMV\nm+dCG05VK2Z8+Q740MqShWmiJdMuW/lpe0gD9EGp9BpIdrMVzgzqEom3pojQ\nyqT1biw1Y51CDfr6iff1TIuLs4OvAoyohV7x4rbse5N07RDnjMZOptS2onIj\n9hM9UljOI5kIE586iPgxg039Y55+qajHm9kqFd1504Iciq5MesHz4rdOZ7gn\nRJTihPHykAjWXcVHWOt1avTR9UVZU+NYfP2JkH2E+/BrCGc0Rw6mm66VXKp0\njwaS7F9JZdQ+SlVCLhYGrtBPYJNfMDBFeyY9VJDAqEQko/Ts6mGnUujn+WRT\n9CWA79jpn6L0Fnaeq/OsU4ZovQ7Y2/dhWcsoMGdhFU89Bs8hq6s3Ksk9+gdL\n8/08fSSXj0zpnmV/7ZnIS2327DcPP1DhINToXMONcPOC6vhf0Xj/xd8u21Pd\nQpm5tNqi5CQVd7LWh/IHeiaGuNDy+iCs8jkbq71joZVUTQi1EE+Sl3q/Ivey\nvTieaw8nTCtAs6z1KQ691ghfw7sZSS2PWodCUCpone98f+Nvgtkdc+Y139mQ\nLYiY\r\n=Kb7G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.1.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.5.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.3","apollo-upload-server":"^5.0.0","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.3_1534446845622_0.3007132396511225","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"apollo-server-micro","version":"2.0.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.4","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f8f6880fe45f4d0ef92a60ea95ef56940dd3ce7a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.4.tgz","fileCount":25,"integrity":"sha512-0MBzuHD8rrGS0p0SsgqvtdG7wSYwMZ7t7HCiuV3o8kunwUnvLl3wNtTDAWXE3JnWFlFh52xmIadG5hnEOzqjYg==","signatures":[{"sig":"MEUCIGHXYq4O6r/Ok8j2q09LwmS2hdAJBQDKulBbUOWcnOHYAiEAlbkKz/5wtBFIzwhNN17q4NsNkMGCOM2jvA3atVivNgA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbezAsCRA9TVsSAnZWagAAINIQAIclfmJyTJbIhm8nIu6N\nnH7GD/WOqBVvnuxZrUd/xOjSSK+6QjZlLVxo28rjWV3pkZIXj+C9mOZcJBuW\nDZ3OjVGfsx8ixKcE4wjBed7BYKdhRsazkzZfH8UgzQtZVR+mUYIlRze9rTly\nbVT2CvpMz6irCk9z/uQaJU3ig5dB4uc2UX8KO2ImNT6+GZMOXvs14k8WEns7\n2lFtMHakidQjZA7rh2NohVlgSXl4M4f+yWhT5GkBSas77oaL6M8LJ8s0LLyr\nfomaXomdgpbj1lLbjbnQ0bCbAiSz/1zKg/eXcKyLoi0JkAPXhRMFGeNAPj9w\n49NNt+cmLjKVJT8xl1nYZwk0Tp/UWiCCsuWNci2NRNuLoTYZEP5CKLzKg9Lq\n9IuGf9pfqH+/d1N24/JKOLeCEiWNdLXRT7/O0g+BPBo+h2FXk7DZ4za7AtX/\nsNGRexX0TqF1oK2CG54zawtsQsJkmIiyRdm3rxLo/ex6wgLtoEEg4xaks7XE\n4EmjIvPXxJMtlRmGwun/3pZA2j7c/ExOeYUUl3fl+OKyfmRO9ia7+TkRUKoE\nM0d4s3j9L1Tm2VDiEbevARfZphoOflXWleGP60mcLxFTbBM0wSogKtKA/kp3\npc9oS1YQL/+67vKfDI/9O1APCjQHxNFBoWSu9YPrcOgbkKnbegzuqgiYdsuJ\nRJlc\r\n=3MiP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.0.4.tgz","types":"dist/index.d.ts","gitHead":"2657e9b25bc0d22336ce2b3b06784325830da6df","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.1.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.5.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.4","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.4_1534799916350_0.8422818835087051","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"apollo-server-micro","version":"2.0.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.5","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"405cb29ce502b1255d5b16da98e2ef5238e3b07a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.5.tgz","fileCount":25,"integrity":"sha512-ru+GBOcm2oSXmEue1q0/tGProxxKj0+ndKObk2+exbmvVp3gvdCL4P/YUkdWn+AjkppTPXXKlzrefekmS7wkww==","signatures":[{"sig":"MEYCIQDSo6qpL6l5TGa4sx1PmNOfQoAEjq/3SOQQm9qqA0SIxwIhAN5NCwzxg7rAiUQvNwtwJfhPlVMVyxn3yXDEIFYByBgx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjTIhCRA9TVsSAnZWagAAw04P/3t/esrOdllOTYZM9Ktm\nsVwmRe5Hf4VkHJ0ppAUuD3u63EN4nhQHZWAbgOPUet2WqLH/ccDvJHeFMMWp\nur3N3TXuHKiUUUMQve/gw1INAAwKKHiNEuKkHEZmuSq++rzpdBVPwd0lZ/Rs\n09SJwPIDHQ99TsNYecgAG6AxmNSPalCWiyIOa0kRwSc2NSRELx37ZNeY34KD\n0oZvHrFL2HVF3S5NkzAt55E4CtGty7jcBzSmjVaWVTF86ntMFthkp/Qix7cz\n5i0IutLnR+DEkOLKIS/8JDu5z6WKEXcLRY2Wprjxpf8jFQ3DOKkCisQkP5o9\nSDO9NNeP5vzaVOW1sdluNVWG/PPTBDFPmnR16/WRKoXxEMWFpGNPxhnAHs70\n0Rc+5JDT55sCELCZHflY/lP6Tr+qFPgeIzvzKV7FHjEKn4mofngehsfR7WnB\nUO1kEkvhW6hd/4yJZoxKxd0cu15bmiMwKIcZXzMBBxGuw2IHmyDthcRGjbQv\nMi76c+61cvF8q8zQgoxoF48KUVPedfg47C/ZHGnFz7q7kbnB21b3LaFSvgff\n8OOtNucA4GzAf6R3POe6YMQlsxgC++2lwTOv7nKCbpsAsRpWa4aojDk3ny77\nhOBGf6CIJw4vuLZUOFKuFT0QSROgwzLpL5YFEpMzlkOd5QIyEye1BLJPheDg\n1z5T\r\n=ZrPM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.0.5.tgz","types":"dist/index.d.ts","gitHead":"b80a8f050c8d473ae6804cd3be6430308a66eb43","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.11.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.5","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.0.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.5_1535980064582_0.5193391498765723","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"apollo-server-micro","version":"2.0.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.6","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1813500d02c2eec43af67dda48cf0a71e564244f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.6.tgz","fileCount":25,"integrity":"sha512-Rfmv7QZAJKmTwnc9XyL/drUqXnjI2Nwldkl62zaG3xxl+ReDvULRTKAoD28YvaekaS19zA6VxwE9pKpfQiUPoQ==","signatures":[{"sig":"MEUCIEyn8IVmCL+hvMwpduF2YrtNUzUdA24FSWOeZ+gYMkgRAiEA0qWwvHJWs/We6bIHyGdO8IvF/wdC9xla/ruOJOaouKU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbj/d9CRA9TVsSAnZWagAAyu4P/3/8N3nD+D3osTa+5xBa\n6S+LruIbdWRtmd7Zx7reojcNbq3QL4fSxo4tMgZs5qfcHvoHHP/3C/duApgy\n3IU69VHP2HNsnr3pKaQQ8aAyu2GyzDMJFm7WoN00ZwY0RV1kP5kihZ99+2CD\nksxZogVnPCNTiUrAlzOgL5pqahprGj0dU8AbovtIJyxWU3p921/mWmdeSqT0\ndS9X4Tvzy13JGUbvP0yKODafRf6GZBLyW0+qkS10YJ2ohKipMa148QzSbCYn\nBtAykPYPaAkibN+rz3xzdwaL8/muZ7y5RpXpWqVH/Oam9MH3Cp/j+gwvzLXu\nvdo+mmqHSf6qIM/2UBAJAVBmLHdGscCFD0ojY+J+ge4N0e4EtVviZVz4bebJ\nhE9Wlngg9f701WskIY9nPmY+2j43zswdav6nkTKcQX+ZLWYJFevLjzjvlTeH\n0Tw1IlEGUARIk7dwK7bpKcLD9SYRyjvs3AqukRiwxpWeOGpAzkPG8UVUBJgp\n/8vRjaUMP123dcWv/3e8Swox6VCZcfHbsCotzveG3ObTkgjunQuVVOXOhdvD\nucsE15Y18mpqRrp4gH+dDiaddL1fi5kLU6vxoX3667hw9Sy/XEShw76kVYf6\nUjeIQcdcH42v+29x50cgaEIezBeKm27vM0TvW3oxHbMD8X8W4FHhE5yDVUN7\njzRy\r\n=4cU0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.0.6.tgz","types":"dist/index.d.ts","gitHead":"996c73063af8aa361ecd6bb78e43b9d0c0df78a2","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.11.4","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.6","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.0.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.6_1536161660511_0.6700764586439951","host":"s3://npm-registry-packages"}},"2.0.7":{"name":"apollo-server-micro","version":"2.0.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.0.7","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"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"20cff83406eaee88024087a1c36572590b108883","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.0.7.tgz","fileCount":25,"integrity":"sha512-Z3CEaH6vDRgEHgzQ5sPUKnvwNkBqdgbowdGD1w35qPd5Ws3Hmt21xVoI9+7XUyoufY6ZnBkFIt1ckDa9wsRDmQ==","signatures":[{"sig":"MEUCIQDCDnC2daURuWBtvKpmN6rAXpFz2Z+jPpvUhGk9v/bwiQIgAcxHzg0XziyQ9xNqRsEob5H71XdkEP2ELBvHtLizvzo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbm/HICRA9TVsSAnZWagAAmXQQAJhACdjfAwrjqUVlvP2o\nKI/Q1AWeCtThTvywlpeoACqi1QNksQO4RP+8ZbHxDwUoEj1B3UhiYSWdTaEB\n9638oX8V3n4AB7HI1oy7QbBOQGWhxA16i3UoZBBzuCN8yGM8QkyN6u0q37MI\nk57LgA7wOEDsnos4bxweOkli58AemV+aSUOnxh8vs6jRrGDmeNO77rPj+3HR\nbMZI2zxCI4VlT9tWy0hWqfmJAVz+xpR/kAn7BMgFZN8sjifvLFFT4eLnNvnQ\nJ6b2ftKNvythX52aIp6nEB0cLlVRwkFC3CXLfqbAulCoHdumLTf43nxoKQAe\nypK8P00+otY4E/QpL+Dkv1fC3M6PLobBb05VECDpVa/2sdRKZOmZ6wOULrXX\nbEm2blj7WN8ZVp2UZaLE1caK4A7t889kte95eEfkRIfLtoWeh8LpzhAuK/Ka\ngDNSJ/GqF4wjWLWUf81sNv0rw43pZXVD80H4pGtgNkTMGEOFRVHpisCHLMLe\nfYFMi3DegP9FipXr97tY3c3RrLO1E/ipo8R7Kif9/w52TWSa/8R/F4ocFhdw\nKSpZLJl9zoY/TGwy6cdHF5iiS4lR1s5XncOxs6ySEDAVxrKgzQeTlDc9GGAm\nsdyOX36JNNbgqgYxXHIFeWjW18rE2Ig95oEFcuEYfMnpWXQUfXdSittBxfkw\n8h6m\r\n=odUJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.0.7.tgz","types":"dist/index.d.ts","gitHead":"5adae649e3e9018b061fdf35d8fe646b98d38fdd","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.2.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.9.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.0.7","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.0.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.0.7_1536946631500_0.7099519064476549","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"apollo-server-micro","version":"2.1.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.1.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4671d41e0ef20985f431244192225fdfbee7d16b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.1.0.tgz","fileCount":25,"integrity":"sha512-Vb8zPi2AIUbIXkkjqLsQFstkYaNX69kdynLhZ/uejL01vqTMRpVYqNtJIU3bla1hj3LUNFm5RNFtd9sOPdGmGw==","signatures":[{"sig":"MEYCIQDpnaXxYQ2ah31aUt4xuVGK6cgpUDnJXnhF1g9qr7iiggIhAMArldWtsijK15eRMlc7NUx07+4CvIfM+hZcX8Yw8ppb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39485,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboYc8CRA9TVsSAnZWagAA6LsP+wQntGOly0i3PU9wdTmk\ndx/VaUqpDOsb+OgOxqLZIsbgDYYLvWv6bNB+8pfMeDR9lM4NR3pCwx8L1Mmg\n6hbYnmfhYaCCWBj02ZyTWIb8TvZ8XVbP0lrtxbyvHTDlYvHHkDb+hhKbH8NV\nqhKAQjBDdxrh+Q9eTd/HWKu7rXrfApybJp/4IftDofGpqoHxq2OQBe2VvpCN\niRWoygTf9fwzs4cj+Lh4HudaWNfHuQoJoqfew4A1mloLN+zYqGaaC8lL0g5b\nPF0WhJ6M/zCnqmGvU4JssydB8jhL/LLQU1e2sUVeamrDn4EcTDECSwAPMZu1\nccoegHMFPtAyyDW2KDUYPDflt+/X4ytYGKf2qED8sd4XCFXF/2Zsungx/O6I\neu6Q0Di9Vo1YF9TeLasVWZw5Hby6Ez0LiqF04GNFo2eC8svKeCdFhpxHdQJ9\n7HZlzdnO2e9UNIOMdq+iI3CV5zHhm45CaJKCxbPTVBIvTKlSZdT4chXevD8n\nfYAtNa9Jxe1+hVvdNRwtr0AhNgGz/BD2UUyGFQyj6TmGWXJ3Co37zWwEbOKp\n0mK4GYrYLqICdCo6chaUv0QVOf/ZEEG4Pd7hvxoSZbwnImWGemCa6JQJ/0Cp\nq9hlz3G74sVP5+0kXBSnymHi1+N0eex2WfbNHlPH7dUqjkFQrJlKERMXC48X\nlJek\r\n=9JCM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.1.0.tgz","types":"dist/index.d.ts","gitHead":"86dd95e223460f8e1768141a8cefa58bcd409b03","scripts":{"clean":"rm -rf dist","compile":"tsc","prepare":"npm run clean && npm run compile"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.2.0","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.9.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.1.0","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.1.0_1537312572459_0.9501604484021002","host":"s3://npm-registry-packages"}},"2.2.0-register.2195":{"name":"apollo-server-micro","version":"2.2.0-register.2195","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0-register.2195","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"eb6f1911fb37daf3bbac3cd9895aa6f4bba17070","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0-register.2195.tgz","fileCount":25,"integrity":"sha512-AfS8yV5fEpluRy0YsOdtfr77FBDsrrNCFOBIbApDm3oHCy2VGgRyLILsqc1Oh+pBLVcxPWiaa7MTHd86fnXYyA==","signatures":[{"sig":"MEQCIHf21YiTHHKtQgr4x06lKJLFCdxYWzxbHxqerPmYLRVCAiAwIeks0lypDNoQaRacirHB89aDQdLb5ONYdWGBkRlU5Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvAloCRA9TVsSAnZWagAAH7QP/jda3mrE5a/LDi4jrQtt\nwYIeC3SdiHcCLgPO4ErYaX4x9eqpUXVp4zsuaflS56vko5NqvL10d+PBe4K6\nsVbvvgQemzoI2eHoFOvYi5PdLUXCnianrabIU+NRVu5Pscvt8HJrNfJnYSqy\n/uDeYNymuGo+BsoRkCFzdTpv8yG4F90oHupuoJ6KxQvdIKm2F9P/aHgenkrN\nWMBA9ho71StlBMUIjr0eH+7tJ3oWH72lV5rLW0ID9zcxnN3O5Ww0S+UFOzzL\nMTHskFpbuvHEilKuhuGrZFscSd+rLObNz6kPcyN6dBuCpw3Sy76/aFC+ovYe\nslrXHMY9CQb6KhmwbEqP4np7S9E2x9v/93lmyDo6hCKsvl+9hJ29k5gjBZlJ\nO/NT+MmmSUAuKsN05HysHIQksYXFZC4yIAgGMlUKXejUF4MJC5PjV30/dNMW\nfwTQTAU4gFk8cXmmdXk3kXHC2yNBFIPBgcs7fFhUU9liU5l3rQkWYeq/WXXP\nfUKUavCAXCehnCwsbkgkAwirqVDnAmcYk6asN+27O1OyAXa7+qhD1KQ6w2vB\nzNIZ+sFn7x13ZUo3EbJSMn47OG1Jtxhq66b/+PahvKO97NPPtzJ9TPYNd6nN\n7HgUJ96Xu8M6MHz16CQDm1wj7Bun4AUKFjcDs8DLvOWc9m40uVqB9VQQrJZs\nP7JW\r\n=NSHC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0-register.2195.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"e44b5bd3c8b602f549ae52c4cb9d9c7e2488a5c1","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.5.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0-register.2195+e44b5bd","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.0-register.2195+e44b5bd"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0-register.2195_1539049831167_0.9748864291105568","host":"s3://npm-registry-packages"}},"2.2.0-alpha.0":{"name":"apollo-server-micro","version":"2.2.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0-alpha.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"086d37057b49fc67f78a479dfd923e444a0fc3e4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0-alpha.0.tgz","fileCount":25,"integrity":"sha512-OmPiBGetyqWvO1KSv2l1pkcSEwwTu/yuPreRhJWzubmnwiESEhuEhx4uJCWJiLLCDvWvIRbleFcCpoOyJI998Q==","signatures":[{"sig":"MEUCIDCsHkSyyE7ThHMTZ13MybBHNM9xY4qWDALjarBEdJlcAiEAkoDmHaMk31JfNKODciUNQW93Gwtt5XsdWIkfCnaGG1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvlOzCRA9TVsSAnZWagAAu2YQAIOYl56mfJxc/GSogRf4\nTezRuCvGULCXcGlMoOFH2BrNJtpsus51JIajpagF5ENdlMdxqlgCwbDuwQrK\ntDiqY/t2/n0v2HCG7XxtoedsZWtxZTWygJvZtP/xhgnqwprE9pxIo92TBv3e\nFZ9fE9LPtXIwHEb7Usm8BPLrxL+Y+Qduf6JzxhViREgca+97cRFzcwK3pkC1\n5ReCA8ESTbBm2g0MDNNihS/RuX1LfovgFIg49gh+PmSzAzdh5HbG0JE0SALP\n5cTTxmyQX/iMVKkkK9wDcJNtnE0HaSLSftID/uo2Kg6DPe/tbWl/3GV5fJjx\noj1Sn3lU6PQ/R/R+yc0cbt5m3za4G5HfkCvHwTohgkFgp2QNEvpSf87tN4So\nrJ8D8Px9V0D87UM7sa/VHC9MSTFGLm3vdMXMC7PT4vQj5+6Xl/DR1fTWrAON\nhZWPoEN93KwnPoZF05kOT65BoVVqI2AOLpVaOTWv+91HdNaLHYDNfAtvDN7Q\n5CNaxOcoFb/gITsTb/l+e1nyuU2is2mM7SD7rem9/sj6xbsulJp+caQwEN/+\nGax/wYNt55+mYg2J5PFE9NOWOCI0vplEkMcQjttN2dN9DR2pIv4j94HPUrJ/\nXQxbZ9ivgaN6uAp3KHuEK4YqQOwEnQPjC5uynfftpR/9aMgirG5sl6QQMYNy\nlJC3\r\n=xT7z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0-alpha.0.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"dec2b94a0e309c1c75b3e9f3d7b4011e36a7e48a","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0-alpha.0","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0-alpha.0_1539199922324_0.5989326252346452","host":"s3://npm-registry-packages"}},"2.2.0-alpha.1":{"name":"apollo-server-micro","version":"2.2.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0-alpha.1","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"073b2af67352505e9d8b94d0d5bf8405358799b8","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-drAn7akZx1LEjO0LCe1Qz4Kkhgd9WfeEUtoHs1F5TJ3nafRzxddxv0/p3S+kSn0yDXr/71EXj7jBXTaG95rkRQ==","signatures":[{"sig":"MEYCIQCkPaEJMC6RHsJvRnSyNp958E3oFUSbSDndftUuGdiLwAIhAJM7ub1dRYu06VgmF6uzRMoaXbPSypEmrBRrwNoYq56U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb010GCRA9TVsSAnZWagAAHiEP/RSplbRctgFHh/XCMyda\n+a/Wtf09oyVKSiSbp/FTutBExGKOwuRGsvobUcb+gc1n2+WzyXFNgaIJIvHM\nvhuhlLZCyMjh0D0yyQM8bR+T113tuS1PmWjM1X90s2jUzHl4CormK/Nz9IyP\nQjtRmmDdY8xobG6CTzOeXUZBd/1pNrOabMi3Zeh/5YwHLif1dgfDQluUa0oT\nGPsKBWziFgAXmgpA2ieeQ79ONdzEBAI1fwZOfQdI9CDQLUYuUkOxrOY/MDdZ\nAz/6t25DSrG0H9hsniU0+Huf3znmcBWf2UC/OB3afe+Qm2wvEleadKnqjbKE\ntBNwDYLlR0FsnyaEZEJqobxOaNXNQUnc4hjrtv6/iw5P7f5uK3HCocwx+moZ\nzBthoCUzTkHJ74M13GxxwJ8xMhvg4Ir2Vdxxm/Me2EcOKHai727nsSB9M4rr\nKWnzJxdhM1LJ4tj9zt8vV5sxrS8E8y68MkzGsTcWFZ+p+vyiVhn2SiVAMdPq\nYXufR5GhpAPraHs0vAYFG+vSivWEDZkm9KoMDI8MYKMA6CNkpdaQOPt8i1t8\nafUGlgVWVIcN396peXvbysYmxFqhqudbTmAr3EVVP5HqSouDeRT9qWuOwMwZ\nUW24euI+D8yYR85Lt81fiUzZWrqx864AaCvPBs+SvaI5hwWlVZgkwX5oHe8l\n9lVf\r\n=CfTq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0-alpha.1.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"5b8388323325c14970601310d7864b86010cbebe","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0-alpha.1","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0-alpha.1_1540578565867_0.6380939142301765","host":"s3://npm-registry-packages"}},"2.2.0-alpha.2":{"name":"apollo-server-micro","version":"2.2.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0-alpha.2","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a4d2669f99564d8ac6d9c83c3a61e76406930314","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-EjY9xOYCu5PV/7XphyAMwmXDdiZEUJguchKj0tCnQJX0HgR+95pkt4tKJeBRqrr0zDXk+CIRx77AwCBuk//p8w==","signatures":[{"sig":"MEUCIQD9/gczbVDFdi2fL09lm9wguQsqhbUFTQKw4k2LXLjm6QIgbHKAaS8B5Xdkwe9J0VRN1PYmu1Re35NRJ4Dedz2S1eM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4J4tCRA9TVsSAnZWagAAMu4P/1uKRlFpcUTjB625ANrT\nAFkJSw1gypZDe5EVhw29CRvxRW9JSTQFEVi8Xz0UUgkOZk9jN4QKwHj47fTp\nAWYE6fQc0HZca5CSK5UIouHgTUcyEfTOJNXlo65mB8ImRtmxrXJR7pigHHI/\nAro/fAJ/TJSUwwuRKe+bZmgQ68KZyS2Twc2qeoXzX1mPWPp/ytqk7z+SNGMc\ndAzoAvoRHCiaHT5DnQBl6jRlYXaclYYTy/VznoXMnsjobnKHGrdmZm7NXigx\n9FxXY9wVwGBZnUcrLZskxxyFiPSwsVeWySwep0eByg3BHpauls4okoacRsHP\nFoAUveagfz7ePLjgEkJuH64yqEoscUssQpDcq0/UmS9UohdXu3d/IbPoEXX0\nALCG4My7ULfvS729xe50oAkBbYKG7A/uWHOhD6jj5byrXuXRhXRQXojG1v6m\nzRBnswgFTlP6AFATXl0VL8b3u4dDPhfjNTlIqD+rIdSES+MpisCoQ5r6KV4h\nVQ2VBTwNKY0nz8ijURkYIy5c+FVUTP409nU6NZ8LoKSkJ3IyzwY4QkQ9QePr\nW4mZJBOnQ2eteg//UvF7IwkHAYwdBHRtV4yfraJq8UDY+WLw4BgVPRUvBo8e\nD6mzWYvEilf6dFYS/Z53c29yp8VggSm+HF7Ma/L2opqAWjzWNdWnb3JrwhQS\nRL9m\r\n=U7sz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0-alpha.2.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"a6872c2f6ca2db03e9f237510b3fc6802d390785","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0-alpha.2","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0-alpha.2_1541447212389_0.5944600620580298","host":"s3://npm-registry-packages"}},"2.2.0-alpha.3":{"name":"apollo-server-micro","version":"2.2.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0-alpha.3","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"18400dc3056f9f2971ff1aee4fe3f1121cad4dfb","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-TalGX0ot/VfRu0KC9UiLXE8Tysi+cEoy48nRqKUsIP2WuPHH+zLZafqBJcpn9CoBSQZEthi68t4jbgnh4o8yBA==","signatures":[{"sig":"MEUCICn1W++LXoZYaampHN29hXWI2X+G1Km0hlqhv1H4iJuVAiEA5CV05qJUciSGyKN/7UAe1hTtUUu+7yPbVXS2Z0VKGmY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4Si9CRA9TVsSAnZWagAA7fcQAJdZynvRbhKh9/L2x4M9\nt5C56N7BUcathaifm9IMZWgWwuVzrzevDeT5tTLhlgcVj8CU+0eBjf6socVr\nco/HMiob+M5RAn24oAHFYfgX8/Q27tiX9SDNJ/ZGbwRX+YM1q7Pub7ia75y8\nyN08A+QU7UmFKNoZTrTWRrxEGW3k87uc3cve24wcRyUJLTlSvnt0NLiN3Md5\nmTGXf6/l+mtiDwWUAIVppUFur/lHTwgmSIOeCdAc1U6Mmn+WC1rCl7zxhnMX\nVSq5KHIyY8whiY1xFxGCRYJUNWAoUkPJ3pxr+Zy6T6hQ1H2RbxfhI9XFtKOK\nHi35P9D5LqFdSxPB0oudlrlyzEJmlgZgAmt2byiXgpfecVesonDkVZsrC7b3\nbQraQFWk9uBTuv56psSSzMkXzkirO2doelCFZy4BPc74eO0Q568e1ig7RW/i\n1dyqod9HRZaB4IHNAD0imUZsrSwW10e3c/GOK6/B33f6P+F3byqWy3AUChkZ\n0tj0+jw5dd34FNrU1vPytP6Jg0x6NAiEasuphGtMNg2yjkbUXTEiuHLSQqFa\n0bHu4DfdaSnw5L4niLMOyb+g/WtzzV4XB67tWM+MXVUqIPtuAQ+tlE1rDIrA\nUn1n78ixScIzIUCKX9y88Rhw2fDl6K1g/Rm9QOJrxUhTRAP4Y3Ihmc6bgUM/\nv8bd\r\n=vzwl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0-alpha.3.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"5ca4c07bd5d07e7e753204726983dd7064d18967","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0-alpha.3","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0-alpha.3_1541482684935_0.8486637690504857","host":"s3://npm-registry-packages"}},"2.2.0-alpha.4":{"name":"apollo-server-micro","version":"2.2.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0-alpha.4","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8c5aeade0b18e4bdfb6579f49ce819f9b8ad9d15","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0-alpha.4.tgz","fileCount":26,"integrity":"sha512-HHfb3uugVjoK+ndYp8i3S6tw+Ug7T8HGUuOvPicnreQPnPGX6PyGAba9Sg28szoSdzpcpn6KIXMfBhJQ/PTL+g==","signatures":[{"sig":"MEUCIQDEO7Je+Me1WV0wwcOdmlt9I56GRWZDfgqZRvHE72eh3wIgVvax0olY9rQzkQOsnkfgIdcf3kPEZwd74yoiy/xD4lM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4eyxCRA9TVsSAnZWagAAl58P/1E3DkNjJTi98FTieCqz\nebpxp9/slrr7eK3oE3P2egQ3MQW1Z9QijypQpqCZTsNjITcKV9HZtUwPbg1H\naET3xXuHtp6bONgdETFVPBKjNctMQBt8oCiGDvOwHFRGwwTLVhkAM4KVydny\nCbpIiXJ6BZiEifNtmBRo5DZbjbtBBqS8HePks7Dm7YbKA59+Gd4C14QNr4/V\n9ESmNjxS8z5PU/3bApXmAMy/V2gt2wSBooMK5jR1LiKv57ZjS3mNkxz4dnk4\nRGib3Q7A6oQ/3esIb3x7bpTX5b25EAALgcg2jfgY+o5FnAO3OTJAv2I40tKs\n+y07s50F2+Kgdg/iXXFnIGatF7j8QSawJHFanFktzNsChiiPMpjV/SgxAr2z\nn1gSbahLsCel5PXqr+QC4Bln8oevUOWOGRaaxn+PA82gl9yDJHiuyGC8qXn0\nFKBC+2Nb0K/el6q6tFq5KxUjqjek9MAUIZJpEgiYn/vBVN/FEARc3UiNfp/b\nHsyV0elv7ZZpZ9QB1+v6zVN7uNqTTU8MzYp1EoB5Yu0WL2B47PLNMMHNGYlV\nVd4DOniGZSaR8/yrWtMT2TjV/XDt86/byy5FaCXgF+yvsyhjDKIB8rkpsKcm\nSTeATVFmq66BH2s0qsBc/ueE1vP2FkdA25LRr6cPHCjE744mZ9vSlcZrenn2\npnNG\r\n=O7v1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0-alpha.4.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(root, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  options(graphqlPath, graphqlHandler),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"79fe6bf0bf0187c2a754bbb9d165c612bf0912b4","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0-alpha.4","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0-alpha.4_1541532848482_0.8403947827299387","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"apollo-server-micro","version":"2.2.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1f8be32e6e73a07b330220a64b7e72fb0b5e5e8a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.0.tgz","fileCount":26,"integrity":"sha512-R1c2cA+NVPxNeDTSZB7IZ7GUGRGzeaqlCuO2sYrLIFJxnWiTPLLokUAKabKDWh9GUOyNgI7BMAr2M62smewdFw==","signatures":[{"sig":"MEUCIAthxt1TZZYyD/dxvU1xyG2qQKYwjCT+eBF/mf3jyQiTAiEAxcvhntiZeIYVCQi451ph6lMcRC8OCTukVbf8TVJuuYs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4xBUCRA9TVsSAnZWagAAULYP/2a0em0zeRvbZO5Uh7gB\nLYbseoODXUa4VQJpL1HmLH/CuYrskZMpuu3WSmyohHp+TZqfbI4dJ5eeDQZz\nzA6AThykKINmJQOel/yherhvDp1WBjfEF9y56xa+JCccaO9dsLfdG1/PLLxX\n5Aa60hPLpbVIonH25mVeaJa2+NsN2cRl2n7qxYcmowTD0LoeZFT8t4rsQSai\nucbBRGE14SiJ/9/46sqZGrk9NCCtazL+cT0GyBhC6Qui0FtYdJRKoXEL7wvx\nn4EE5Q8LJ5ytjr012lQjAac21b4qLLG/8yvKRdb+SeiSx2VWd/uAfk8Myd7x\n34SjJNQOObN3oVu4Fo/C9OeGaCyluRWIw7E4ACxzcm4gjO0+8tJv2h8h53pZ\nUCl1FKgAgha6q8u+E2xAaDyOg7uNU6SYkJX8p5QxUDghbI5hpoFRP3qJJn7n\nm45rd1YDuMh7woduO1GffqMYmqTbmeNjFjqpe0LWHAR7pi4OwY2txALJEUDs\nJLratcaeR4YQ9wrtoh9KMg+KWEvqy9LVs5ppCo/HCq8mfAzhS4+Eyo7JpbKK\nyURw4lyyb3fkB6NQW7XXr4Bn2cpWZIjZzDz9NgL5vQ4fi1kb76wfapXLYGE2\nCBGSSABRHq+9sSoRIhDlwl+EniXDdyTViMubKmQwtRYo0swPgfZJXN+cpYY1\nyyEP\r\n=+yj1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.0.tgz","types":"dist/index.d.ts","gitHead":"6bd73b175ff628a5e9858e2a5da1aa9dab5ed348","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.0","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.0_1541607508339_0.4935916329465244","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"apollo-server-micro","version":"2.2.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.1","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"79f33624956bce82172fad6f2840ec9e8959c0bd","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.1.tgz","fileCount":26,"integrity":"sha512-m5W3WPLrAELjXaITbvC6NaB5GZQbd49MEy7s3WFgv4veNnEbP93SN3W+kqPN2qapeSU9Z2qcA2EiNZO8Du37Cw==","signatures":[{"sig":"MEUCIQD7BnYQlfXWHSi/qcD6rgUDARi36rUvG8VinuBMd8AskwIgXgO1CAk4+3lOzupepqTFp0zGxMSWNFKv/z8/oJ+8uAQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6X+nCRA9TVsSAnZWagAA+/cP/jRmcI7wWRGdo/ox5qmX\n34b3sYKXkLqJ6S/4pjEauOyFDdtcbSJN/1WhgprCe0Qdf983DctVghFQhxjz\nzaWx1P1iplv9A7yoqf8kVpCoTPTgopGr2myGkL1enNr0kQ3xy9N6+G93M5i/\nFjFrbLe8Dw/mZqnGvfLe40glZmVZt7uhZ7d9F+EhYHgLpv7YGdWnmMHJe3z5\nZx7UAJLZ88jgjQxR0o9hPqyQzozt2AAT7Dlh0ESPOogi6Dsk3FE7SXhBOFak\nxO1Oy6J140lP2C5ByghfasthC8qACHuFbwEK5pLSYxkAUwBwyS3kFLSfnN1D\nOpVUP17wBo4JOmcbcTYDzILJ/+1jBxjxs4oQJRJk+f77Xuwz00YeZFjo/Uoa\n5i29kuO0W+6FTxhUqrJrZsa9EMxPrZR3mfbFQYNdzAP+oDEk1hPCZTF+RHz6\nU7S7ejBY7agIENMX/UwtBMMNKfKlkkV0PShx8yVwIKS4pwlLWVrt8DWv2kts\nbAofyh8OKK+o610VgORbw0QM/uu8VXcBe8IIF80lK98Q2EmFxnNIqoeQMtu9\nzFvBS8WP9NcH11amiQkRdYZCuQnUJNAsYcly8Q9i7apogE++VC9fqWaR8PVA\nu4+N3R9Q/SH6tA51NeEVt9K5Atomw9qNbdtbsdbo7JIOTJlvoxN9UznHY5K1\njTg+\r\n=yXmn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.1.tgz","types":"dist/index.d.ts","gitHead":"20eb2e9e0353b58c0e445cc8e9b56f3a93d64db2","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.1","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.1_1542029222292_0.8060536870704591","host":"s3://npm-registry-packages"}},"2.2.2":{"name":"apollo-server-micro","version":"2.2.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.2","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2b0c40430a80cb85a39672e0d41d16cc030cd102","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.2.tgz","fileCount":26,"integrity":"sha512-Bgj/g1Zee9RBMl8P8VkJUAS+MM5bPW09mTZAfc1Gp7Nco2eGkZxTIW/8bK2A3RQXJX7fV5NdWzIjNGUtX8e71g==","signatures":[{"sig":"MEQCIBi3junc9ThK57Bv4p5gKwuLrYdSYDw+HdQsl58Ao3CQAiAKAUjeigC6Vgg058clwkRwxjJZ5APd0WGVJ05yRNg2tw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6tjHCRA9TVsSAnZWagAAHUYQAJ17vPls6stIT7fllL+N\nGLMZBE5QFEV1k5HwbZ/QS+tHTQJhNboEvLuGtuy0dC7zM5dNHU0LRHRXXHuH\nFZ6dtAtfTYf/4zIwaJJ2ojlzNZV9RBKs3wgGIz9X8h5X2RbDC1TGd8lv6qQJ\nhXHADUaQ9vQ3kU0SbI6untlJO3ufI8Q54jgXfzxZllUGBht9RPyJ8EIIRFh9\nWDV5phead/GmX6oA2f5Mk2Gw1ij/FSRmvgqsa64PAsbFiNjS/eoRgZ+v+mJ/\nbTK+GA4ojSaeV1kapLKV6md6t353u8n0Qa7aIhCskzmGelT9MDMrVkHWohQq\npX9shH/dicAAtNvsEp0oDiWa8mwsCza3CJzctDzoKOfE+Ihntoz7rBmA8c5i\nAhz50EPyk/mEAefgEDE3JhK6czIPJUoS52gQDLFOwn0O56YJD+fCEcsCl8IK\n5YDMq8lTrj5nNodF0sdiadIIJmHVUICGk9J6RyqEfBeN0/Z1PECdJ+1sxmt9\nxS6X2ZPvmRw4G6uhDN9PO0FaBxvritVtW9lUBX9lYWcvAcPpm9hSQXI08Rt2\nUeseEi+bvf5Xo+rRYhcXHORUEoQ/OqzJRFTcrMDWL60CZZ3W1+Y6O4bNMxo2\nynfSEK2UKOtQiycuvU10Yvenu6U9C44VyUZuA/4PJl6Ui5YWqnp2Gop9WfUc\n8upL\r\n=iAVz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.2.tgz","types":"dist/index.d.ts","gitHead":"47676e0cd965515554e171ea7d2a99573125ae58","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.2","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.2_1542117575268_0.054248107519229594","host":"s3://npm-registry-packages"}},"2.2.3":{"name":"apollo-server-micro","version":"2.2.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.3","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"647dfff729bb101a04d9b14984d811c2ffc38997","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.3.tgz","fileCount":26,"integrity":"sha512-MRsSC4bScAgrf+6lCeFCZ51lTFyhHxvghcNUcRYQazJIjXxeiS2/iZn/6rIZ/BRXABnodu46g4kR1ryQrXFpgw==","signatures":[{"sig":"MEUCIQCpZqHS1HOInolj3U6UqdYmmgk2ocPUMNk4J75PtkKf9gIgKO0Mp5SUOLJhc/n+0ZjIb91LuLREdpJEQuTFzEN8vRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/EJ8CRA9TVsSAnZWagAAtrIP/i6jGGSXAhKYXe9/MlT3\nAITFwHsn7A88ECDvyhZN8SGsQa0oVVYyZcnvtMtw+BMpzvpdHizeIKffn9y4\nh9/T40SJ8J4LlXkomJnSfjiVRn/+g6s9l1h2r7Ged8HpMsyz5amoW2SYYcpV\nK+fzW2GUI1V3zfu/jZ9J02XrCZhaKTKuTjZqCXeTovwdig+ZsrG98GuR4w2D\njhgWHOGRZbKWdVLslCQqwyFJAezkue2sN8RdMtkwLmyXIr+A9G53AHBu+QM0\nlKRuQwJX4g7NnpLMS2Ez08Mv6ZXo464SG5TRoT9gLrzDY2JBJkDRG2f54EDf\nUS0md0y3RbU7mNs23MNajW9OpKFD3nqLWiUdTP4p9Y96tLzFLw6AL8O3MdWH\ntJMp7h0OFy8r78pIJzYja2d4OmFZzqStjSy2VaL7K3ptflQfDDciaBxssgxm\nvO37PCo2/RiWCtOwjBtztHbzN4EdSdTOiNw99cVq1iPA6q5wxiwLrK9nook4\nfXRvBnwcI7jOt4ifvLCe3ddCjCFGB1bkdHIIkYWhZ2EjcjzK+tOjYhca8T+/\nFXmTeaLFG3t9AzsB/rLc/MiduNZBFkmpKZ4iKuqQhv08GdsS5W9zWvUqlyC5\nlKHiv7PWm+bKcci0Uzo9DxcapQglniIXHy0DTXboZEuC9FtsjbwNikCPXH3q\naVe5\r\n=caJX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.3.tgz","types":"dist/index.d.ts","gitHead":"1f3801c94967941f539e4bf925c92134b56478e7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.3","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.3_1543258747476_0.9592742155797447","host":"s3://npm-registry-packages"}},"2.2.4":{"name":"apollo-server-micro","version":"2.2.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.4","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ef647f062bc090ae79ba66f04e3dea5fa630d8b6","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.4.tgz","fileCount":26,"integrity":"sha512-dR7xh4iGICEig7i9o3oZjZedEfPutVqj+7MQIPJ44bRb4GMrNhHdOFs/GCSLRPV//ILH4qe8NYB7H6UKEZ82Ow==","signatures":[{"sig":"MEUCIHu+9f+Ng2UQiCcuY5DXVM5hLSE/N0MR0CeZYTTYVM9xAiEAqvWxMaPJBe2F7sG+86MiP44UhiVgv5ZNfiWVKn9DKsU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/p13CRA9TVsSAnZWagAA26wP/13CI53BcwniHGjs8R8q\n060M6hB2IehFPqGNoMO9ZYbBoPLqY6r+qQZkY88NojTRVFOVzSEiX0CPXNGQ\nNKm7w0nLxHLMLi5nAhBHqMeeIUfabmc4oRyF2mvwHvLC8Xb4toQJTHRxIe2B\nlwEE6a2FZEMqcri+vs3oygneXX+NPjjkCXy+T6MWY+CrmEycpJTGVG1Fak2Q\nZ9/vSEps3X7owJU76HgrGvB9CONWkakp9y8XSvgr4kLmXgddSRzERrm+Tz2g\nd1BvBhBllJ3PUd7B/aRo/Lvarh/c7I28AaRx79ljuyLnDqP2p+myz3RMhi3T\n0/Qu5tpYn45Xy2HKtKDeG4uD3M3I8akj1ItMWCGVoL70lh3r7iRue7tNmGFF\nHNTjUVQOryGk2y+0uCC2OZFJGhr19K+FYDfujRwdPdPdNZ09JJ3evbUQtYEg\npwbAGU2BZDlvEu4LYEcprZe4mt4TFCu1cKSJOxotOQMeeBsd7kFPSN2ZewsY\nPf/CcBPFpDZoVRIk20UefH4LLJqE5V7bnjDwfK/ENW/1R02fV1T+dFlFjrf4\nJl5569rJD8Ws/v2atTRcXF1LcTj1ZUpAZA2Z33hoVNCE9aGP9iOkRs2v4uMa\nVAhowTbPWAEEj0hDIc0a012Nh4b3aK9EvPPzcRKeAGTCGMN99kLknqFqHzan\nS+uu\r\n=R+vK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.4.tgz","types":"dist/index.d.ts","gitHead":"ee44bdb71642f3b07b6816a51b3256074209f354","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.4","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.4_1543413110605_0.2796985418900859","host":"s3://npm-registry-packages"}},"2.2.5":{"name":"apollo-server-micro","version":"2.2.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.5","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1af9f464aedfd838267692d75946883bfa0d6c39","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.5.tgz","fileCount":26,"integrity":"sha512-I++XW9p0+49TY8eCt5TtOp3shhSz7CkSn2KLaI8gFTI3I1vhA1M7Yz3uPu7y4M9edlPMBoPb7/uGRAUfwvj8jw==","signatures":[{"sig":"MEUCIQCECunJZsWJuwc8H/OUoHLGh6kVyK0uVCI/7oMw5SK4KgIgOtv/h5uvENcJL/AxfupYh6xRM7kUmDKemgZxJNnRlRM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/9F/CRA9TVsSAnZWagAAGTwP/ikgFpWBzRzXMQjrA/Fl\nl2jcupOpIUCcAXMoX7RXhhh091l7NgnF9Ku8kHNv7NX3OFk0guBcUtrg3lC7\nUKSTeqEgixoo51QVeIr1SaapxHo4hXu3gsD/ZULplMgQ9TB7TUIdy29fNmqQ\njwYVNC25Z0o8Lq2jetBehHMf+yDMicpx5126N8zqlY2TTK26qnY6c/dILRv7\nOkny2I95GbBZYB65tQvKxScThKGPsw3WWM3sazkSDajezgXeV4Ya6Z+gcL7p\nO7/KGA69xfkr2c+N1kREoVMeIzdqmdPmMO6HP97Xwx8UoIHQ7ftdWdOxOhhU\ndSIgbgBz27PpxDT0QCBJrKxlqnvBFKxYgzQQioIB3FTc8fVf+G+RL0TN1G49\nYcCtCvL9A3amQbB2JvoSOxGTJfVRStlZU2sZ5p+bMUqKV+1wkgaB91oTQJtJ\nRNiKVXqYblSZVU6Z2Q9EOV6ojzQEZxRSU8/w8X9HEVketd4tZENj/sZZFUHn\nt/r1OsrWn5j56ExHiVI+n6n5mBguBtQvtz9depj4gn3zQg7otJQlUACzGHx3\nqAM48MJltj7eoE750rMdLYc6p6+aj+4phTHxhmhBOM+tczC8I6GU5f4r+/by\nILCGmJFlAjcd4Djfr+6DvHabJ6txTsGMtrxY3DIsd390GnlFUasfpi4DE/34\nGTdQ\r\n=K+N/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.5.tgz","types":"dist/index.d.ts","gitHead":"85e9094f6ce531aa25a42dad93c98ab37ef6e9f8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.5","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.5_1543491966450_0.11305975148802938","host":"s3://npm-registry-packages"}},"2.2.6":{"name":"apollo-server-micro","version":"2.2.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.6","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"185cd9700c2b799c7b8bb3aed2d8e448fbd27b88","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.6.tgz","fileCount":26,"integrity":"sha512-+/iZmwThiUouWvePKiORo9w2FcH68YpeABl7LnOG6/FT5X/9zil37YyyqeKrve3ApVnDXqAAX4pwXf1Z3oxFJw==","signatures":[{"sig":"MEUCIQD5wF7qnyHsaL+Ju6H7Px322VID59b0SEetHXKo3oIaUAIgR3WAVtZKXwzi46iCOa8rP0TPxcGb8CKJKdxhwRJSc6w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBmaZCRA9TVsSAnZWagAApi8P/1suus55/RxLu+bebQ1I\nQXzrgF/DwtfG0h9fxPiyjFH0lLFybRiw7e4hcoEOeN/Ghd6o2vAI8FF4DBD+\nl8j0R5YM0elIZy89rie3Qv9/Ea7pLubJIupO6zpOIhDHYyyjMlaXy0kFZSak\nvmM4WvhnfR8tV4uF/946RI6LT6PaNTZrKZsrpLkk63PtC6lO8jAZHNXbuJBO\nk2KHcI4px3gsc4ovZVC1/tWC/sGAGBsN68oNVFLawAg1AxKH1oozDuM2RJlQ\nMTK02UsSdjPh3WjF7n+Fgw/LehxWDC4RJQJf6jjHjnELcUHZGzYHAK4z+kSi\nCTYbh7teVmyN++BnQ1B1ljuLlmE6WHr2WJKiJpQplYk59j8etmPMEAfvXUHq\nYDHmNxDw30fw1fjQDaFf1x3nfVHRxdIi3Ac73mcGjIbOdeuOVzth3IgvqcQw\nUap3v+El9VW9R7SwVip2CoU3VtiPROKrTHT+0Hs9vWDgN8w67uNjX8Kqd2l8\n7Jutk5e/o1r0Vzokqf1rntUxnYMp4HLZDCAqXY8Frmp/C9qMUP1nLh/cw/+0\nHugFYz8BRv/HAP8iWQx6dU8uMiYdY77CQdEGboYcyN4lj8uAZFlOATOcc28W\n3n8KF+tY2HDvfqzkKcEbL5AvV9BvQz2POAY06WOhy2NPFL611P+mtl5NiCfN\nAmBX\r\n=/RqM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.6.tgz","types":"dist/index.d.ts","gitHead":"1e5cdc63975132004390a2138fd01e85b6f8ae32","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.6","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.6_1543923352375_0.16287638444356345","host":"s3://npm-registry-packages"}},"2.2.7-alpha.0":{"name":"apollo-server-micro","version":"2.2.7-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.7-alpha.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"81be5fbf091c79ea1966f9c8055546347b634dd5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.7-alpha.0.tgz","fileCount":26,"integrity":"sha512-cJicV3EEucm6u/PZiOUUiaUgT3bANFdlcnB+u1w5e6DRPRaFYqr7z6wc/mSiuUZCCwpLlgvXFsmLBtNjtSwbRg==","signatures":[{"sig":"MEUCIBxNO3DOBk7NPUDBRUbW1vu046KsWlamIaIf3c/tNPI/AiEA1lnebQeVPCaFh0hNHW0VpNMoxIq2a/eFxa51xFjbCgw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBmitCRA9TVsSAnZWagAAb18QAJSt2TA9bsOHZlcBCwvD\njAYMXy6wfqkvslW/agwtY+3GUyBMY+HR5qFJlmudOnWnIHzZPJEzDjTqwxGJ\nGjpsCrQAh8W/gOv0oH8tUl2QO4fao7M/Msk3NjOOzi1Py2GbrB553PjUhsyH\nqH4hX8NRda8lxwn8QWs2N8QEu6purseJltYYfqIKFRQL9GtQoPrCwiIc0VbD\nG15VZ5R0aywqaJWJdq0NLN+Rj0moJG7q9nlpuSI5H16v0bygAau+eUGdUnVq\n6HD9UWSyeGkyANWhdvKwRtbb/Dppra38Mv19TiQy0T2OP6VOWo64bUzK3hKs\nDNb71Vo6v8RDyYAqsNAenduIKlzbA7eHCDmnu82FQ3BcWx+pxjXIhwiPdttU\n/+hH37wWQVSsOitSpG9KJjCoCy/rxcoWI9+SxPL+vytXtvqgMnOLFi9LIPeh\naGWBEcCb8CnYvzPSk/vp+Jw4yzduoLvCx6R1n0R9fxJ+Byun0HC3kHxjk/Se\nZAjmFVrxOahIebyXovzPJ97jisWE++cYePtKnfon99NOfTYs07AuNF28JVGa\ncH9/9WSrDasbZiO+KPdj2XqCUNGImtRex1HN+71zWRjFmE6WWPQN4Ys4xtLn\nJssPHXx2VgcAHd5VwY0KzWdTQ1G3OY81kmN7UIfuohWBbYj1Ex+9g0egU+9h\nanaA\r\n=m3Nn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.7-alpha.0.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ccf0aa54769d368399fe643efc2f529e20fda4a5","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.7-alpha.0","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.2.7-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.7-alpha.0_1543923885389_0.29581412661494344","host":"s3://npm-registry-packages"}},"2.3.0-alpha.0":{"name":"apollo-server-micro","version":"2.3.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.3.0-alpha.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"},{"name":"sashko","email":"s.stubailo@gmail.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a4fb45d92d7ca2cb2b9f6bc896ffc6b0892d233f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.3.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-yHqekYUOdwvUDG5hUaHm2Gjw2tyBWrZ61TBImPzZyVVZCM5jvb/lPJoVwPoyYuT7oE8WcndpgrlPpCwVAkOC6w==","signatures":[{"sig":"MEQCIA5rcG1ik2LJuuuP6reROw2E8odluj8k3XtkHXPm1JjJAiAMa6h/TAiQ5GhYNVZI++Ii+zwL+4PuuK1rcdfLogEySw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBtHPCRA9TVsSAnZWagAA4d0P/2kthsXcxa2MaH3byyAF\nolGtpRRgeakfgs+ILVtgckHU5PR6rGYFIRSrd8ypB+4peJhet7FtdZtyHpog\noVRg6L3ouDIroO3LrRpz51dlkc+gi0mh5rI4B2If7uMTnUdv/pZkN3IhXCty\nEZIF1DHD6KkR1ZXIH0V4uKrffVd9bXEvf4D0jQN/zkfNltFCbR2f9w6KHpzt\nWDDtdFbOONyrduDtViVqQMXavBA8wpg8g61hYAkuk5y9SXo8Du4r7G/L0Z/2\n72SXOrxiRrW2tvrvg/xGoGQb41L05Nv0Vax32+rkpAQPxor0T1Ech1zQK4OR\nml21QXQR6e/ylRkzXgDpUgkjxcnIjLr2w/tPBJePx8XHuHdkithLNh4Kyo2/\ny34kLR6OFzuNjZi7UZEuN2tuobUdZrFyz4gRvPETcn2Nl7G5ihmnn71XzhW6\nQJMKh1CN6PVVqicJVRmObdIxLR632lWtVQCoPEdECxFYFoDmcx1gK6VVBuYD\nu26DuoLLTm2q/K1jRvXuuEvnRuPSYHv61oJ/baqUcd13fTXiqHueRS4lnTWS\nivlyxFhrJxdCOe+rqO/3brrLSfhLHwWhIzZVNBG498gxl69BuO+bq6DbfLLq\nEsx2Lvh54Zo/fkc2gQ6Km2vWdAtLXzC0zmxpSFkdBbKVlah9qpOTGB5B4Q3s\n5e7f\r\n=9q3Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.3.0-alpha.0.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ef31818629b673e3e68563f773a1113e9e9ca750","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.3.0-alpha.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.3.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.3.0-alpha.0_1543950798558_0.28853434643102305","host":"s3://npm-registry-packages"}},"2.2.7":{"name":"apollo-server-micro","version":"2.2.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.2.7","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"de186e7eb593e9b1e1856506b4eb51bbeb4587f3","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.2.7.tgz","fileCount":26,"integrity":"sha512-L4VxDyzFOPLBt1LATG1UM4QDGvx4afqCY4L15vCKM9VC9jVMCDpk+7i9wzb8F5R56iVVAPb+e4d4PSO1FTWRKw==","signatures":[{"sig":"MEUCIQDlkX+i1yOdWdszGP4b2EbxikVAeZ0MWCTG0IYHxE+CvAIgQKIs66tHj0wsh3un0MwQXzKb0BE+QqdcMthvTtZi0E0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEliICRA9TVsSAnZWagAAd8EP/1XbinHwATjDe41qGoyH\nm03ioTGuoKTaNA09AMyWi0GxsITFLUsjncpf0QvVLQOxkjhw5g/4SWxQU/mE\nc5vWH+tKj60o6/0KHWVckgADRTEvgWeFy9zsMApKj52EbF4Syu51m6xbNZu1\nqH6LbuxmF1x26A55qwFZIbf6Dwlj80j29uFIVgxuOWVSWt/W5VDGHwKEJ/wc\nqFgGfnHOyQAU2LjKejv8vyHKQYuKID5BN7KsMs9o3tZNThBDsIXHDkHY8pBQ\n1m/L2ToHSh8NvfIDOGuoZjl9c1ETTPamqWWrqEKqMv/ppHYd3cDGAtmY0XuT\nemPl+Bmq6JbZJhmS2NuTU/wfBndJchsGAv1rvUHMJmPf2/XHQNkE2oDDc0Uu\nrV7ARTIUzwYrVYa57srxk4s7gmu5R0auUXPUKFh8waLSS4yF3Ih6NeTgAMD7\nAzJ7khTUU0EWLQJtWVmVAq7DZLmXNNd8IK3gpif158w5tOwn2+O9PB2JNpqs\n5WLFgOgG4/L18rxPRQMDdZQLO8CZU79HtJTHXgH2XrqRuCwVp9IzRAS6ola8\nw7Qw7yHTj0abHSCJxIItMjjWtaHGXeA352enxmaxk3Te7Kgk/CzgaK+VWbbf\n5PF+iTtq1AVYMHb/5YWO83UiUbOObfhj51oXO5Q/AYdc1ofJ6IRds7J/v/pI\nRQra\r\n=V2iy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.2.7.tgz","types":"dist/index.d.ts","gitHead":"d7e7834633ea9f703473aa432247a3523c86c597","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.2.7","@apollographql/apollo-upload-server":"^5.0.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.2.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.2.7_1544706183772_0.9339910187521545","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"apollo-server-micro","version":"2.3.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.3.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e1080208b83df48bd6013ad82f14e27edfd7089e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.3.0.tgz","fileCount":26,"integrity":"sha512-WBKwZlqAgiug1tcDK3jfX2M8byth2DCgYVXHmCyzE94JfDU/HSrA/tZzX8+de7hZ447KN0Hkts2b1V8Jc0ZlLw==","signatures":[{"sig":"MEQCIEAHSXInGdrLUxSndqPGM5fNxth4cOMQmq6Gkk+fupfKAiAMRAO3KxiHQQ8rnnuRi1PkarvFdZPbNnpEUwJ4C5FLhw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEl76CRA9TVsSAnZWagAATFEP/j/4+qf4mql9FKqBsfQp\n+jcy6J/6fMDS+m4s1gu3FqsFjjROx6UHx6iGM7FO+F55/tis8LGFV01Y8UAs\nwNIo0xBf584y9QncNA3PwwXjJIohAOAtOl/axdg8pEZOpaGlGsGdLdIP2gr0\nncdWf/Tncj8uPhBbqK86JNp2AXK+QRU5jKJQWANvboZBNu1yt0eyrkHJ36VZ\nnhXWGXGuHlxzyk2dqsAvfOaR2AZGmjJnjiptTDhk526CrBFqfTlrrBtmvmc9\nv4fpU0sHgtZY18L6iGLFb38vRmnJojtnVaoVbjOt4V4LZSwmc7Lbp0pqtP5r\nKOLqjNLc5KR3BWZO4IWjVabSUZES2Ic1E2NPdn2qUNX9KMLppveum7Kw05Vj\nd5NR1wwakYLIRCVccbJjGQV1SlO/scgSe8y2y9A3IHt3c0A/sOhlgStLywfs\nGN3eJbt6byqWE2ftShiJ1fifTqfQnBpVIjiYYkV6NEKLQiv2u8Z3MKyi2eKL\nBEKtKTA+r6ASXo5ycZcuKQtTu/0GswvEHGS4+7M6AfsUmEznWkL+oD3XsSBL\nufzUSgp/7RiMYnYK4LyFKm/qSsSBnxgHla5HGd91KeYByLtXiZcHzZj5shoG\naUOJHgapGfHZz/BROxdhLS6WPkbbJDfKZkngjbef8+LeFT0MSI2B2P/INvaB\ncjXy\r\n=v+JB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.3.0.tgz","types":"dist/index.d.ts","gitHead":"3545c32e2a93ba3de03cbf2751db8e055835a392","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.3.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.3.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.3.0_1544707833997_0.7870554550470856","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"apollo-server-micro","version":"2.3.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.3.1","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c7bc0369d32426ecf87d52708fa08534a7138d99","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.3.1.tgz","fileCount":26,"integrity":"sha512-Fb2d2SNemlMHksr8SDJ1AXeEtLZ6hgibsal6RGbn2EFlToK+jX3jH37sXUO0FQsT4wxnU8jvENcF2hhUwHVQvw==","signatures":[{"sig":"MEUCIQDxiRuElMRZ5ujE6W7lVgxP7rOB+geKfnq4lbbfGP6cswIgXqtsdHBfjqSsCbPdXnFvqhO4S7++PxK8V6sSc1L7GJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEq4RCRA9TVsSAnZWagAACj8P/is1PvLqS2oWp0OmUUAs\nx1LAF/Hyvx2xt9Np4U8bGAqSTBbdXagaiKs+lHPiZ2dQan7PuuY8aH25+xsc\nGj7RNIBcQwaYtCK2nTEP342osbxc3uEoDMmqpVeEhrOF9GQb+8jSUJd+yZ9E\nshB2c11aeNyqETEHKnc6zgp7KeJXeK+zKoBhUzhbJJ1QhupTnfTOs6oYwp6w\nUd++OwaFGOVwpFQPzgEts7PedxS7349Tkk/9KEzdHptb6bruJ9Q8artS8YB/\nrwrRmJ8Xl/uIedO2/wrD/CL74NkyLMWgV5sNNR7wfP8gm7gkwAk/8nL0yd5t\nCNGeQuHlWDyhWOnAkIJ7Nf0hF1RCEORMQ9cujvBdChdEzwoLuORSKLTCPH1D\nDWf7WVd1xr6y7rPVFPclsaIUTxr0qg8gRvu1PLXp8K5u1Wo+5Rc7huFvA8I2\novg614zWG0ncpF5KIPpoGzJYjpCINtfcvorJjX8G64CNS6XlIRuQak5CnN7y\nEKLjnWDxL2CUwA5xFfc/YIgFMli7FtmbMcah7ovyW2c+UIsuMuNUUmPvpw2y\nzK2Q7jenDXcmBcM3CwXDXLBYFF3R9tmLUCCusrV2PY9z7cfVccb4vOsbkKol\n7WwKqyb48ZS/MTxpoiIAifEVgnfC2xRv4DCbENIZH7s8qvHj1LODnjN11yzw\nlSkA\r\n=WQEs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.3.1.tgz","types":"dist/index.d.ts","gitHead":"cf95cf7881c12b150c632a5e020a1ff81127da59","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.3.1","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.3.1_1544728080795_0.017060355952323025","host":"s3://npm-registry-packages"}},"2.4.0-alpha.0":{"name":"apollo-server-micro","version":"2.4.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.0-alpha.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b1d3d4df85cd795659995171af6ee28bb04e709a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-cBQ/gX1tFVcdtkzn34hHmO++ZRze+4ry4BeeaEf16d0ikbxjf46URBXE+XR00FldKiVmmUl3CRzSucQ7FRVauw==","signatures":[{"sig":"MEYCIQCW44QEEELVWIqYTPRekda2NPH0+5JKWpAZuS55gYMWMQIhAK6DfEREM/CPh/CJWpAvtFkiGmFXlqGFMYdyZlFFd0E/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGQ7mCRA9TVsSAnZWagAA+PQP/2gjJR8FArp6PEZtajww\n/mvePJEo1uTx17oHkRYg3UTYNwepVOhJgC8HEjb9mOBNE+c66om+ue7s8ExE\ncgNYjTjZEANz0YS34zc/1tgtcqNSOwreL6b3IzGiLjbyZHNhfenWT6VjYUxn\nr+sYttRKpqO1RRX+sKvn4T5OP5Ax/X6X0SU9Qn71DmjQDZ/CrUKREmN9Z66B\nqTwfctmKg/epY157LGNtFSNLR5hJJ1vdi5l6ahF1ppiqcCWmLCeZFw96eFPN\nQpGalsIAFGEsxSVMbph/o9SAiwO5McekXHuYe0etxNZY7q7LDEUd0c6x4AWN\nWRfwhhJqTri463nFGmPt5sTzvCsRj4RegRUnTmNoc9tjiAN3aY1S2V/19kD9\nTHl/DbschScMTfeZeNbbFADDvNOixexNG7RoYj4sEdhvX0P9Bw5/3GyBPrJ5\nBOJKs/ukDFSw0yq+nvDQKLMTCI8Z8S6WPYha9V2DzQOPjGXJukkL5+8LRiCW\nBb4Aztjqx0iSBa8jPVGiCMw1NTu7Jy9OQSk1+UjInlrEXTOPDbW3l20OnoQq\nevB0E9UuduUtIDLiR7PU3o1xMl8Drn+xjphUKmJE2sASRyoGdfARjQWz2KUm\nR1VAIFo6nSx/Iqb1uMgZ1youOlHh3Rlk6lkRhbfMSUAEdmP5KNh0LIlSCvQN\nayYb\r\n=+SKi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.4.0-alpha.0.tgz","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"7697623789a0c07cc65b496657d3e85bd96e1408","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.0-alpha.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.0-alpha.0_1545146086018_0.36370531092679403","host":"s3://npm-registry-packages"}},"2.4.0-alpha.1":{"name":"apollo-server-micro","version":"2.4.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.0-alpha.1","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1c2398a73b04d9babe3ea4a9dca1b8b1933981f5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-1mKyuoPSNKvOITluOBlT5rRqrxleUlywlitlRdmEb0mnDu9uXVOMg9u4Ts21+iLPVRq253dtk/SsJtWuqmKS5A==","signatures":[{"sig":"MEUCIGQ9mPRhAlZUl4/PCpw4LhI8t4L4Kno39JgDAmELpPzlAiEA2iUs0F7rbe7iP4tFTqYl6VZ7FyqRardP3EAx5ytn6i0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPxGCCRA9TVsSAnZWagAATzsQAJSt9BtwmY70bFmXYUkc\nkkysilwYFCxB0zkjD2i40+WEtaLDe/UNhT9ICHLoX5xr61LXCAXUU0tMLsYj\nXLxkcfCkiHRSxGtKccjDw4XGLSBBiT2Xa/9tfrMzZVwVur5KqegDolflUxTx\n66wJWqQf2Yr0WKCtz0asazLde7uwA9ONquA6QP6gfWlzIBkO3VFUAStbyLxw\n5j3VkqxckE3TYhAOnK7okM1cV2dBPST4nFmbukqOt1QO3yj5XYO2RAycMQ0F\na2rrfjpcaSGIu65kKEsDPeWU+4zD+NAbmTs6Ly9Nj2Hf6K4MxWu20GAOH0gb\nVDWU1AeL6RWT4irhnjQY2ylM4tni3C1MCp0KJ00WHS5/qahbnAwTM1ymK5u1\nTBGyGgSWagP95t2hBPF9xzs9mUHlq1kafjfW3NQvKH1Drb6A5Ui8gbACJni0\nygc8zS6ds2LTsMwFWdpuxLA3K7ucr0QG6Gxo3fQpGYakyILE5qR48RyLwF0Y\n7xIhgKJc9meseKwIbgCWY3MCl9UFdHz56L4iQHkBICpJHUnR3NzkEHrrTEU1\nipaK+WsZtoOFAqF6pkxAtprSxuUOC3lsMd83JkG658ydMjOB9bhHQfGYrXFg\nL+XuxL71/aXCg8qIxqyQgfdhGBluPZBuUNqOMSSwkdS3msZH7W+MJlJrMCoI\nQkBT\r\n=NsMX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"33d1f828141826f4d874aa783fa302e381101ab5","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.10.5/node@v8.12.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.12.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.0-alpha.1","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.0-alpha.1_1547637122146_0.08552130001971192","host":"s3://npm-registry-packages"}},"2.4.0-alpha.2":{"name":"apollo-server-micro","version":"2.4.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.0-alpha.2","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"63512a84f40a9a996fea96dde321b53b80959dfa","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-dAJGNQKIlcCIfKGdTfXWNvEBuhywAJMnIAtLOQNpzBohKphCrpNasy21e2hvUmqKHBgEvPULqqTNADA/fJk9KA==","signatures":[{"sig":"MEYCIQD5ZKc0hCigLJiovgWL8GNXvPtNpaO4em+ggmce1VNvcAIhANG/jUqP5T1K/Er7IN2OGR/82IH7p+riqWrScKW51T3d","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSGZvCRA9TVsSAnZWagAA5iwQAID5IxC704ZufgOONleD\ngFiaEmrmgIgSb1PdlEtXUkCEDn16BZph5dlawjMizDuzEHAFvs+ro3WD0O+K\naSgEyQNxcWNBmFy2xbDIMJKdxtarM1BtuYZ0mKNE2I9rCZYKfOYi+3YGRk5P\n0UNS/9uzoi/W24QUfujzDDfwLCuHR99a5zV5/A8gy6jP/f9poiFZIkx2vN8C\njPc51ZzlelW2j3Hmw1lSrarj9osC/ivuseFPuPVmJN95mqdVbe5MRS1cOheV\nGSRjQ1jRzENdjmIgTv1o6VEkxnD0OZH80K3HdHQILq7gQAW/kusem17p+mwc\n4Q/YJXdGnprOGqEoNqglp+q6SFsyi+1hNlg1V1YXtBtHNCj2swOKfGde3Bbd\nWgxgiH627CnwcdWXRPaBmJ+buVHtpDBJyO2pv1IIdbvodN2ID/WJ0WPt3Vny\nQhGLsHCtk7Zu3FLoRAL/TQd5NUxo0sYN9h2tI4t+iy92tX/fmtwnWKJNq8YL\nbs273S+lwo+qGhrxOXE+YQVvHwnBwKv0Um9HLlAwd8qtRzPOL7d+Rm1nFN79\nYf/YEnx53mjhC9frRnwIwVkrCJcAN487Ur/a2UZ3qMnEW8zvMi3w8j2CHNcA\nDzFDz5nR6LVAO2wsW9JOwwFedayPWn/8Wqvc/XklFpzOpGPzhna5ow8hIrnz\nMPXD\r\n=Pc9U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"1d0021933ecfc992c506ae7528fd9e4fde6c2944","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.10.5/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.0-alpha.2","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.0-alpha.2_1548248687238_0.9134697914120229","host":"s3://npm-registry-packages"}},"2.3.2":{"name":"apollo-server-micro","version":"2.3.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.3.2","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"37cd057e81328fbb46f303df9e2c9ed096658cac","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.3.2.tgz","fileCount":26,"integrity":"sha512-/1gCedxhqK9cQdIlj6sI42LjQJLZYhcCwg6djj7MdsEw2vKDx4lo06zeLcFv2+C2pfZ4+5SZL/o+l3GSc30kTQ==","signatures":[{"sig":"MEUCIGOO+KbZCo/nTVZkvZ0K86PClZ0VbQOGWvIvtTfPDe/NAiEAqnE/PT/q4+3uz40xM7BCAgCSyeslu/iXIuZzx0c7iLw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSz34CRA9TVsSAnZWagAA8gMP/R28ObJSDbUk7245ONtT\nmnOox4zR49GCrEzF4r2UpRolTLsORdun4lj+ddRlNVSpFO5pqbTbmMq36PH6\naYmRmJSSxdTY9cWN7KiF9wFZlqFJ1zBJEP0ozt2ZZMnIx/NmT0N72F0naPsj\nv4D6aa0YKl56PMfjYJkUj+MO0Xs4ZIylXY67k4uQpMxq/2S1jUZFnPQBQHix\n7bTgqa3iVl7e00T2jadggfxcieMTkyqMnKWOYggN4geJ7CYhO8us2SDeqfjj\niptKtUtThVUoRbrDOUiBfBuwx2w/mhpEjripEukW9Y3tg8FZtLEdweRQ2KpV\nuNFnAeJFET5NyZFrMy5ZrNcSxhzKcJgxHWbRlCvzFsn+JH8/3DV2NzWNSwZF\n6lEsAlJRRfAPxB/tQT3vU8C1ttPt6XdpU3wYAF9GS8ZOK+F6SwUgytVMRSU9\nKdA+HGidq+W5fDUFTk3GJFjCTsbJaTP9eoCS8kDyjSlloKkQmHqXweSRcRhP\nmYSWtY1WKtDFld4hPm1+d5xilZe7J/csREWX5eIhlS//a4/woXYiSrbdKfSj\njY5ce5CrtLCtPJgmyxCDdbEarMVX9ysjNjglxiOToX3n6M5vDd8Mp+0Z0BOd\nZillDgXv2y3mWdCaOqAUQ0JiMX6yD6tZrtNcFSinBsAAvSEaE5205Ym0Tb54\nztfh\r\n=P3i7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d48d0972c5730ea63969daa892f58a34aa1db543","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.10.7/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.3.2","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.3.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.3.2_1548434935947_0.8307893105157675","host":"s3://npm-registry-packages"}},"2.3.3":{"name":"apollo-server-micro","version":"2.3.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.3.3","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6236705558d9faf63fbfbb8485efbffa51499165","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.3.3.tgz","fileCount":26,"integrity":"sha512-ixZhSpJDp9TemVsOVkgmEkzvrNIp99TW8dzOFRE3wL5UBZCrsdo22FtbNwxw9Ujfi4DH/NScP4hFxqTJkpuFdQ==","signatures":[{"sig":"MEUCIQD6y+lpFw86IDSOjQ654xgyjqGEbOccxTWfdGVs98Z9eQIgKjtWXJr2XCO4POBWcRopgTZAM1z3RVisYarNSGaS9qA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUCI8CRA9TVsSAnZWagAA9egP/Apf5MhosnPZoF6uJ9PA\nRVi27+Vl78WblgvRzP11eZkrTRVrBAWJGqpkbmbp+QeZR8ZHdTBnyO11OfLR\n1u+4Sro9AaMcIog1KwUFMSziLK/sEaVxsPT18wkf9Kc4dhZSXCPDj042QeEB\nBvw4mgKrU8ytqVmxfzY3QMkJcxWCWRiN7ynvMJzSU7qopfnJuYMFzA51f4MM\nEYVLuG+r3NaF0ti0L1nzf0hOswo0ndC+My6pYJny+mRa5k/zbgnqHz6mF96l\nzTFnus2pv3korb6X0bDhCNSRbsWudPU4ElL7ch8YeCYuNTpW0VLLVzWoUxWN\nBIHjb+iVU668gFAxPgCCGQ2KjwLbEw6/EHP8FV2naZwWGKZhM847mqPc2NnS\nwaANcdTFApqwZKUCEyJOn9Vm3ApdNeDLFQUnAExA+KGH+X1Wl2mfefDrB42v\nF6M8o6xr9aKf9ZZ7At1PqVGGk+19KWsUuinzWvZEnDCCreChzTE68CXefKfz\ncXqSwL84rowpVN7iTYoA0dPXTiggukbHLVkJOpNhnOoQwbTJuLt6K+uXxSUI\n8mAkQBH2kWReL165MCFcBHe56cOJp316DThJHZa8ybxQahhyTWMeya0d1JM+\nopIR+v48rYQQtLTBd+OjZUU1jc1ydHt0xP3T2ehXXLQBheZfo9TnU9+pNdXQ\n25/D\r\n=Bk/7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5939327edd7f455cf1d621f761c01c55161639fb","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.10.7/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.3.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.3.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.3.3_1548755515727_0.11304015507330689","host":"s3://npm-registry-packages"}},"2.4.0-alpha.4":{"name":"apollo-server-micro","version":"2.4.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.0-alpha.4","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1a60220ac17b2a0f9fbc91cab774d0b10592aa3f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.0-alpha.4.tgz","fileCount":26,"integrity":"sha512-vP6VVEzGThQowH9WCK/D4bCRoEuINkdOHo25Q4Fvb69dNG9grvdZLB5jF0UohtpmnYPzpU5lfYaT09tR2ddhNQ==","signatures":[{"sig":"MEUCID9YfdSKwv5FzBLWsrpvbG9o5De2mbWjx3sByWduc8/bAiEA1zzyLg8YU19DHtTBxMyQZhXvkmrBkN2OhwmwhYUS9Bk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXBAfCRA9TVsSAnZWagAAfugP/0C4e8DQ+mLHeXFE0Q/1\nX3N/NA/WO4QGwF1vJihpKmbOWddOhnyafBgMJCHZcteumtrRA/KkFXDHLgmw\nnYOUGr8qoojc5WuMzEus5I3W8n3XSIjrZMvb0xXk32uUEBgKBlvAqFWCwQqL\n0MysOInV2PHSe5I4NXbvk3qc7qlGiQr5VASJTqmScLJfoXewBRdFdf2vAtDX\nhsR1f3ObcDF6WRghnkefYsSju+5qVUYXV2BAC/69LmyadoswJ9WQuPj8SqGu\naKIBAJENcxDBGVkdyOtNowc4GS4VlTCQ7JuIPpdW/suQJqbTH5k2qkluBaxd\nfU/Sva2pdGuRYZCyDg236CYiYeP/9exGexb1w7dz1jCU+X4xPCZ/W5QJhw9g\nFSMCeGfZ2Q8U0LianHTNrjH4CccSU5gz1uf4yUmW9FxJdWyxb1QyxSiswQbm\nkEdThDaY9dlbCd18W3SluUyLWqHganZJwRRnTcVgKUKD6VVDemfdEHhdE1qA\ncWQd7BhBG7BWyyn+7eEsMN3pW/UE4BKqQBiyVqtsyYnaUUzKlvvL53nt8v9z\nqEk16VivjV6kXjk2m4ecwYJyEcJNrcDBgQvSnGIUNmB3H7OeG04rga7DZFmB\nu6MdKx5ayC8JTA5rMLE0Z2Ck6GU494uzzVpEHKUO/KC7E3tCBKEz2rkXvHHi\nZpNh\r\n=0lOA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"f74610b290106f31308e36e507386ed2f352f3bf","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.10.8/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.0-alpha.4","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.0-alpha.4_1549537311363_0.20016283771129117","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"apollo-server-micro","version":"2.4.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"74ecb1bfb28ff02bce3b0e6c860b9fd7a5441586","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.0.tgz","fileCount":26,"integrity":"sha512-DXUzey8i3uMrdZpjdisO1oag+43lg/XpnWPQjVC+Eh5lKj/5DbSxB0LYsXVEa0GZymiyPPu+BNZAZmHmYuZKfw==","signatures":[{"sig":"MEUCICD4+pXofcbhCV4yOWIf59F3VTiMmrsb9t9MmGiRToNcAiEAm6nrtrsB3/ipkePuFKuGLX4LTmEkjnNCcWyGZdNkCzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXB/nCRA9TVsSAnZWagAAWcYQAIC/7dHqOJEjJNj1FkDM\n8rkpz33klLPluNro/7lEGoJypLBj1vHZMKKJZ6wzgoajDMCM30ZM29GDCJ4n\nLz9F0QXI5JewnRAgKnAw7QmilqGnQ/40GeX/p/kE3RIc4stRP9xyh6y8x6Bh\najbLOR6DMLHMmIAlHaLj/Arli0yd5k4iRlySLGgQ4CzZ2hKcMlimkE30nLAJ\n/kDeIC++Z/lvnWRJMrH1a5m4xUgiG8oz2TZDhkrPXN7Ajg4iTjT4E90rIT8K\n6riqbZGDGAuoZfJzaUKY5cJwndH7IYnCiLFxJXyjXzwrhS1vSC60dVdTaJjE\nrkIXvDcWkz+MDu75Fz9gpiaKBHGAFCHlsNsZ3RBZO+trWkD9C8JptmfRcRG3\nZpT1jAYWVbVo71kL+EVc+OneErHLTP423Q//UdoY6z957UMOwrdy/gcFRJ4g\ncxcnb6aB57Q8AJZA1pnkV7IqRm+aOQPlCYqF7clKmhT6RTZoAsoF6g3LHefF\nbwxbRFxnjVsdjj9dh6iYRI3WQTHkO38BYprFnyjK1AGV+4boSWgmgWHNZuhD\neb3J0p3LPZ6VAL2a3tU5gFo+hoxtd/7SWqTiy4lTwC9lV3ymJztJhKsbRCio\nx4jHhYyl547ne0XlrkCR+jB5Scx3UIRzzPIAQHHxU9d2GSuXIDQheqDgoHb6\ncc4H\r\n=EkHx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a3222ece11f04ada75ce9c592efcf337396951ec","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.10.8/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.4.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.0_1549541350702_0.44787201365434237","host":"s3://npm-registry-packages"}},"2.4.1":{"name":"apollo-server-micro","version":"2.4.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.1","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6229be1f427e219f246475f15a9f714b02c072d6","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.1.tgz","fileCount":26,"integrity":"sha512-lr2N114heIPrrO6HlkZS76B65h//DaKjuvvIe/GY71zN6qx+lBvGwlz61MJTRJZz3kx63CVjmLKYUbQmDg+XfA==","signatures":[{"sig":"MEQCIFfKdiPQ6kpx+EmrpaKE+sVO6IvW6wNSG5/w6LU9Rm0yAiAobRz++e8KNWsnOrp28Bi/0yDvtzzK6X9AswaF0kmxMw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYzwOCRA9TVsSAnZWagAA8UoP/1l1F/YTewIPzrSFW8AN\nZ1inBPG/P/k/AeP+VulrKFlMFUccoqcjq7wxXgJBmdNQwuTdQekfkuoH9vYZ\nur16fFfUqVqfSpNaOgWCGsqZa1Kb8HNgw68FNGhBSUbSRF/aripZX5kjKWAw\nvs+Z4/R9KsmVNhbYsJE6uHK9iNIbwn6a+yIlnsqPU68Dd7kOOnhOEpgpE4a/\nhhNiscHeLpYFeyuNdoFYOeDKywbyeObX9pvUejVovKq7NFXJFEh5xkQkCpAN\nJdPHXwOURkUuSml6fm9JCKXdQtRPuoSk3Uc2bTLs3UXsYRifpG1h5jobQszi\ngV2h48csA+QBYvbrCp8PDwPLo0STzGNyobA6Ej5qodTthp19tJi8ELXKDSMk\n/Mxgh4eKcyCBCSQMXf3vXhUMMmYnTpfIi9QLRrVxoGu9WbZGQJgRkFdgEAAH\nql/bJqG+c/2BWdXOH0gaINth1MDnasxHbPBwmlcRGccBLhsk9tyeK+06sN2b\n7/g+ORqNEheDaZY76H2EaiEihoKpS6oJnD1iKwIJUipFe06pWV2436e5neGJ\nmYsU+XFzUr0UaKXpiQZwyrbVRnRWhh1jEo9DQ8EFi2TMxGLuZD6v6SYHBpwn\nuijo/zXdcNk5YeCafr2vgj19JRRpyj2QRXGBNdBsI9lLpMT2za9gn3lz/yse\nM8Xz\r\n=IiqQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"4116b2ff4a410049e1fd39eb2203ff691cb1077f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.11.1/node@v8.9.2+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.9.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.1","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.1_1550007310247_0.7581919281451999","host":"s3://npm-registry-packages"}},"2.4.2-rc.0":{"name":"apollo-server-micro","version":"2.4.2-rc.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.2-rc.0","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6ff1e5ab379d179927f067569e3ff12f24c1c5e4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.2-rc.0.tgz","fileCount":26,"integrity":"sha512-yKn01fU4ePHyZ4TGauqdgf88sOXJSOcVHGSTqgzCCij1MhuvNrokKi9QjI64lb8NR6A1QmZ94PSDHr3dDO/cTw==","signatures":[{"sig":"MEUCIBD+pKLwARlcoVGmbFKmFwuyYiz46Jof34p6pP1b+4NlAiEA1iC29C82vKpHQM/W+OfFte8u2WmgtZEoheHatAHKA2U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZWpfCRA9TVsSAnZWagAA5ywP/R7CFxeYadTlpFsW77IP\nw4Lt7tQAhOGexkIjKIDUehrJfIsLA6aVJR/YLuwt1aWDDE3QKE0HNSEt+o6R\n9p6ZchQQRa4YDA+Vv/2rU1l5XgLnPR8AJEcjie8sD/yvS8DybkeqVrJm/Vep\nRssAhKSS66qiihDMQhYmMKQApFuNejirsK9j7k5V6bGVmfDVZoGX2pdGNfYY\nZJ3X7a5WBBCmxJf1MsLK9itolKA+VoRKhbycWc8cFoEJaTpt/hn1tNMfoYcF\n4pfnB8rPojkpSZ9XTkTQby4f1+Sl0qcKndDppiHBspVIEo7SmDqTHb+2WK2z\nlp6nrj+rVKtlF/TnwPjXn1Po+U6y1lYAGYU/1/kqvdj/3DrEjpvPSEO5HALX\nXMD9MGM1gSM6CBiWsZe/apmIiivTCzGxBHPbQtpeDfvG3SBHDXVlna1QXog+\nbtWVuPN7HxXAd+Fu2IGq/E09rUSb7q7YVkv5Yddyy5heX9AS4rVMkrE9vN3w\n20p/L3+A9ag1oTeiljKOHZ6UmdLiE4lk3997/Yw2/QQEypPsAe0GcTz2crFP\nL5tHZz0SGXngZzM3vsuh5iOikMze0DRNySjIA4OOxhQDoGpztYepRFJv+YRG\n+yOIU3HwZKLHoaSZjXRiPHPC3Quj4RIItfrN9QEV/CZ6IOOWowIczDUN4fCu\nOjT6\r\n=HVWR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"f988a30e8c655a10d33cde26bdae1e4c265cdb60","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.11.1/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.2-rc.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.2-rc.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.2-rc.0_1550150238584_0.8653490268696133","host":"s3://npm-registry-packages"}},"2.4.2":{"name":"apollo-server-micro","version":"2.4.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.2","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"17bf6bc6cea683132c274b7d3ce77107c8bc4d5a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.2.tgz","fileCount":26,"integrity":"sha512-9w+Mi2BwfaapixbIqTcNLZ34tDik6Reqgh8MN7uEw5xBiHpU/0wTLdudoXmuMHxP17lic31OWMHVijidtq0Hnw==","signatures":[{"sig":"MEUCIEoxlaA3yMX4OWKct7H5yJiqgp8fuM112mE6NBB1zh18AiEA4WkMPKW3vbKw0U0GdqibN1Z+sSNvy6jY49mgZPZ5SzE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZWyBCRA9TVsSAnZWagAAK5kP/3p3Ak0OtZ/+WIj6DwDc\nymp7vo0DZ4Ss8/oH5obSbVC8O86GAELRL2YSpybBvPtCjVKPQ8J+X9CfRxPZ\nWnoWVcOa3xZ1yBrx8/FSxf36IxUPMBnz4sd9/+q4PI30SaRrXD2gTJOZfDPW\n+Qh62BGJnSmfLJbCtNCFLB+rpUhgzieVFYK87O7TQX/MAfYiL6SOvk82aXyo\n4JxOBHjtmOoZzcUZJwDqZnpJ2HjGuEoPVGVW805v0D5QnbusgyQHMrRBmHr9\n+xs55Q6P7Fso3SDGoWB0oBcsGlTSCbZVW/XZiXYcR09h4a6eRE4CalaVIFvE\ndGfSZBZUIeFBk30H0PWtmStAuYU6HSGpEOiObhWGriy6BecopMUuy8WbzcZ8\nkY8SMIm2Gm22XSkM+xTdBvjusqUmT4EH5V84CEL6oUxEHsmquF4oQVFGi35P\n5gFsm06hFm6bYS/GxgCEJflH/0gOa2DLHFEM9tv+DkOWGGTmxGMzKueCESHh\nAFWw7y1h9Lm+dEMhs3VoOnAsN1DNVDd5+bydkUe9ovWQZTphTQ5O6XYrFq7f\nXafxMcwEIPd7HEaxNIeLj6IL0GvsfMh+CHZXXKTVuBhwuICOKYyqXW8+Jb15\nmPXHcodwFTndOjFKm4w1D2HhEkJddeGiXX+1+HHbAW5yESKQef1CiNPVUzru\nvrcK\r\n=ln/6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c1669c3d74ae44088bf3bb23cdd9132270b26ee6","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.11.1/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.2","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.4.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.2_1550150784738_0.032749666008360157","host":"s3://npm-registry-packages"}},"2.4.3":{"name":"apollo-server-micro","version":"2.4.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.3","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"dfa03f07d37b6d7868539695843e9d0f55cb90c7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.3.tgz","fileCount":26,"integrity":"sha512-Aa0DZn7p7fVlYxG8k+MPtht+87174l4QKN63SinK2KeLu3ldgLCkx1UaTjNI9rhNgO5sCsqEz5v0vSRKp+oBFg==","signatures":[{"sig":"MEUCICAX6jEr5GUCicNErfGl8wXGk2tQIAgVLTsqTQkPNW14AiEA1FBA2CmXm6Qdl6JB/J0nqq6pEhZiUd/6PKvjL3HksgI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbYe6CRA9TVsSAnZWagAAJ+YP/1OjGjONX8RK2WkAkfzt\nWJW+g9LL5Xa9HkYGAbRb3shBAvIrSlIfIdH+lo0fqzqvyfJDR8ewsiQPz+1a\nf7nVJEkZkfY4vBHSpzvoiV47QH6TC6PJcDsKGKjUz/7PS3Xfxb3Gt3IX1jI6\nnIJXvXCtUdRH5Mh7uZSBxZ3IBSSjEfs5FdCJHOMSVXCoVdbtyyanXBbvFzK/\n9wNB7Mf7yssZMMw9bZMPY9gLrHZgXBIjEokiQFMLgRUh4pdT9Oj7rGFxlG5v\n0RZLzFasptDPkT3jnBsMYftVdllt632nrGr8izZkptqJO6uhGvQrS6lJluhy\n0IDgRdHrwbuKtGT1QL4cepjfDIf/6N6hAeNCZOti9Cs0GZwWkdUpkf8Yau1W\n70gefT+KejT+oSZOEiQNEW3PfdVmcBLjKFXnODrWk/4hFPsmVRwdthytaHnK\nPQb4zIXOIyN76kyytTsBlba4fgwAwgj/iN2BLENgc9GOyoyOrQvtxVG7ZDV/\nWL97HPvllNUAuEghvAr6uTyMh6x9FRpJuZqyFXMJ6QTiqw/tFeu7oh+nL2iS\nNQRqghWGbpCMjFnwVTNHfIOwKghDLNVGqWaC22xepiav2RLcWyKwlQOrF9ws\n99gugjATX58z7mnJzd6C88mmVL8T7COB0/ISlweFadLRA614WpsjwVpSHML6\nZCjd\r\n=toU6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install --save micro micro-cors apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install --save micro apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install --save micro microrouter apollo-server-micro@rc graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"e1d7078817222f125d4e96269e22f66ef0a8ea0f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.0/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.4.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.3_1550682041710_0.8075570875853162","host":"s3://npm-registry-packages"}},"2.4.4":{"name":"apollo-server-micro","version":"2.4.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.4","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6d336512e0702f74aeb0747a3abcb11877da4ade","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.4.tgz","fileCount":26,"integrity":"sha512-3wFkAmBmfdc56sqAjmVxPd7yqrh5PxS1+qf8QrPPbyo45tgwDc74x+43tPJpfpyn58C5zugfwih+gQ1SgH2BLA==","signatures":[{"sig":"MEUCIQDUU97Zyny3Eae7aFyb7N6DN7W6TsQPM2KCcCXZBYeQfQIgUafqfKSRXVXpKZeJYSZm4p7BLPSIYKc44ocPh0Pmic0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbuyHCRA9TVsSAnZWagAAYXMP/RCJ6ts51u/mn3C1UIG2\nIreFgNrixH6NwbqkfbQfDsoXNBoGcAf1rz8tykpVrzaytuyX0DOlOL9SXtQ9\nvq9+4YruABHpor68+lRARditEKmjBcTJ3EL1TUi4VPDdUoIOagATd69K8AAp\nmLBMCWfNlp5dOiYpRA2SqU8IM9f+MqXzpUus8ewKATeHCwZejgURTZRimoGO\n9WVGSvaecxcW8Oq1IlzxwLmAwwKktkebfuGVc1eusrvA76i+OWvtUdYZjyJK\n9i9J6vCU7ebjiCQwCYk/IhxbRx9Od5PHGcEPbKBRoEzKHea8/5LJCsxld7jw\noK5sfgje04+EQgh+p+n/ix05uN0wpD3WXccq7mkHOg3nf0FZ3PjuP5b9TpXm\nsT+S6MBOY0f0jdRXvCwdS7de5K28tKyovKk4WINpPpeCk9dG1HHBvAXRDbM8\nmsXLfwrdZAhhwrL9fSNqA9EAsSalduTdC7XkeAxmOlJdXfGZcYUVQAcvn9T3\nZWnoxsIO34LGR+hLG8NcmRVvaA7bFGYYz9hl+CpGivewewGEKJxNDyWpN4xE\nwgepq6gAYVSvRUg4GhCp/lkjJVJEUgMOygedVzjmYQCqd/2UgVv/iBeSCK9W\njwNLKsUdw+dtpQ8MwnpbwqCHKber6GwCYFwOMmd4Wr4/e3nZKejpOTIbff2x\n2KZr\r\n=AGFd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"879ed190349eded2221e5b9827281a4f6ae86660","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.0/node@v10.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.4","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.4.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.4_1550773382967_0.3985800118244154","host":"s3://npm-registry-packages"}},"2.4.6":{"name":"apollo-server-micro","version":"2.4.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.6","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a9383c76f3451e17a1ac33cbbb3e8818c60a28b9","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.6.tgz","fileCount":26,"integrity":"sha512-pG2X3rJBbE/e+Vw2xItZnT45LDDHp9PEbv5Tbh2ZXBVQHlhwQioEOy5xXvBP0wio9m7+/EMLDcKzyDsrf6ghJg==","signatures":[{"sig":"MEQCIG3rAJ9oSZhzK+Rs8MyhCLHWi98tbH70cQST46jtUF3GAiBBX2ZEb9SR7X/9TvImX7754t/bMf1nN1OZi7VG8UTkeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcb6MxCRA9TVsSAnZWagAAaqkP/iOYrdVwRI+sBGcVA8+Q\n52pYPGPPRw4JlH8BvSFM8ya06YZNRWj+z10XE3kDH2uVvrVN8dO5nu/80KPi\nn7NTvHkRLQryFMbyu+KdREZCzhpF9Qbp3vsQAzpSo3mBLpO2eCZw+w8MBbjG\ntaNBR3/JxV8mmmskicxf+qJrOlaYrM8spnNLT5rGNSsMzD6FSOsfS9E3xXy9\nDwFlTHAZ3OtLOteeGsc9+Yc/nWILrqqHr6uXq1KPLHVcionkkuqF4UsmcTyg\nfJZu4fcXwPpWS0chr4lYZSrgdIGygldrsGLhiO2CCdu5MDzG83CWh2AP5pke\n4BUL78Eb8sx2GP0Eu0VhsNF1TdbD0lrxPYUBnU1mmM4BVYabZTi0X6AtQbYC\nEFSWJ2jbjgYAvADt/GkWNkxPCV9ye7+BzM1iGLBKD/+4/clkl1cDY3yHYOXn\nyeGPUeAIfgHmz3pqZnHxs+5zg8oSaHpUydpQcMKI0Lz9vWILqBv1Ap5BKIcI\nHc5jszhNLl27UawUnFcupH5hE/NJFRVGo6pvX4Lk7Gi/3UykyVgWsXnk2Bux\nHok3u3Xyto78AHNW7Sxrf6DhFNTZnMDewEjQGOJYoOYZyRghr+6GHK7A7FoU\nJ9DTiaiqZjX3iZI5Wnc1CaOmXjjIWzu4vvwq2sWKC8jOd1cOqPY9x63JNtv7\nJ0hG\r\n=4gBK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"62587e037bc60778432093eb69bfe9b662105a83","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.0/node@v8.15.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.6","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.4.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.6_1550820144839_0.8223652690044894","host":"s3://npm-registry-packages"}},"2.4.7":{"name":"apollo-server-micro","version":"2.4.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.7","maintainers":[{"name":"abernix","email":"npmjs@jro.cc"},{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"jbaxleyiii","email":"james@apollographql.com"},{"name":"martijnwalraven","email":"martijn@martijnwalraven.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"703205d9a44213c780b45f53ea2deebe0d4ff5ab","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.7.tgz","fileCount":26,"integrity":"sha512-gY9r8CbcKsXEWCpP9W53duSG5FBpqnne5LB6aVrkEuVERgsYFNh3BIK2TlwUx/fOEkSytEFxXdGRL8/RFxwbrw==","signatures":[{"sig":"MEYCIQCrBjQwvrm4tWzhk4NOLt0F2XzvGN1tojDzUA1x0L+2bgIhAMNhi1MeTE9SLCVvuMIEqrjZomBdgbRh6tNkCb5/EtQz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdSFSCRA9TVsSAnZWagAA3Y0QAIvliMYrE/CMNbiAYh0j\n31eWDCaBGiEwKbXbSaiK1JDNkSjfubvitl3l5kkLHibKTpamIxVVD5uoXsmh\naCsAF5nSIfVOf34gXWqHtP0A7Ql+hjRF+WYy7/npN0+m1G6frzpIZgzq/Bvw\n/AwscGMFFW9h5HMcdqSe1xoaxLOI5gFeBLhdEFIrlHY2iwDwJnWXlhFBGQk3\nm+U6sojZtw4FQRgD2jGCclwkXWJ6c1/yuqmiOK6Fc1WZNRbcPFJSF+B8+yMv\npsC6ZO7uZWMAvZRM68yj73rarqaiH6onWr2t4mCC+LQwKu9gMU/FJXJWWWmB\nNiAz3Eq+RLoY/r69tdXyD47tMn+ioQBtA9JkVZRKOiDB/B1rUXxItUEFI7o5\ndYP0gXiWIkqJOQW3C65xn4iSIt+o0qjXLY9MRBdPSPsRourD6xXOOSlLyvQb\n3UBBxRRwKNQSTPx1rqz+AwKCwPqBddGiVVIN4T7GDRPllWUluY9rwdXsqJaS\ni9LIW/dIOPgOZodIgnFYR+bw7MSGp1bzzdANCHXUvjw6+tgkBN1BPULwpyOf\nx9iVA1FmcrE1JZ3nwo2ro4pEJ1Fc6S8WfHyVzOdoltVICL0c+snR+9DuN6Kl\noODwuYPGequDB4F91xwfEAPXZOuPahdAVpKc/1x1uItd9IE9bvlybDks7d4r\nF4xY\r\n=BMM0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a95421f19bbb6c3e1d92b0a02dcdf64069a2ab76","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.0/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.7","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.4.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.7_1551180113623_0.9951215050472488","host":"s3://npm-registry-packages"}},"2.4.8":{"name":"apollo-server-micro","version":"2.4.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.4.8","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c00882dbdd7220043aa2dae6a6c8de0971c54d50","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.4.8.tgz","fileCount":26,"integrity":"sha512-UpcWgQkyFHdn1n5jlnM9+wvGBZUH8aBdK1oHur1CrfEfsrSdOgpxg5peQ1ZwAFjLJvJ3SkjAFTTMIPKKZROWGw==","signatures":[{"sig":"MEUCIQDRj4KscYiEaPXa69R5w3SMz5h+SRrZRxixgRu4jU4zIwIgWnJ9MsjhXwzGFSTcNKpYbakP7IzbXRY8Zjyb0Fca3x8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdUyHCRA9TVsSAnZWagAA7jsP/jeRQEC+psvxpliR0CBx\nyfaPMbw+1RePmpvSWJM2n12DdpUWGT3ZpMR3kv9Id4NDVzMqWXga7TEcWhpo\n/EXyX5q1ANDvUJC1zfzOt8fUcwf7WELGaMVudq5J8HeuUoPyjICrhGGYPI7I\nvW007tIT7EVZpJDjLbOrQ8WkjVnOgpTW5WUtnDvtLAoKjMa24OKdGaG3QKwJ\n7Vpe65TAf2BZZv1tZLDOb2RQCA0lPsUU1WDM22FvSeYNWdKpJVjDCJ7eDygV\nrgdyUpjtI7O25Sh/6uKThTNctbcmJq5nfxMbsW/GbMsXw6IV9GeXRMi3PBQM\nFBJnAy+lq0mcisUSuI5Qg2j+35K+ddlGZ9hJH5wFT/R17HJ8zKOhuhHBP1Ss\nWXYUOXBtvgju8VDaoo29dkj3wtvfGFmsKsYUtkmV91zDmRQmWsxwkb/y1l2c\n6+CA1syr4xA22FT8+2SDSx7ZmzTmwY8Q32N50XHYTsEgflO9DzD02lLsAXXr\nixHVLlp2SgXW+k9R0eQxvdJQHamqUNf+0UVF6gpK/Iqi71fcwSqTPa95tK0U\ndpHsG3K566RNnZJgZfgUDhfA0X2x9k5+wSbgz0Y1OuD0gu+LwR3MwYs5uLSR\njhVcdRnuSmOoCQJCQ6kVORNoj0thZu+W6e8vNsr7WaQMr+09XYww3CNPDYEt\n+FQu\r\n=HpY6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"046327068b5cbb2d80c3865cdb2566654ea988c9","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.0/node@v8.15.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.4.8","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.4.8"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.4.8_1551191175053_0.42304867455909356","host":"s3://npm-registry-packages"}},"2.5.0-alpha.0":{"name":"apollo-server-micro","version":"2.5.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c8a4cea8105bd5cbe9167320053c226181a230f1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-665o1uajbtw9/H4sH8xJD2XHYxLfDjk66BfdkM9RirRxD24KYYT6u+8Kqgt3w0pUEXj7BpVYr9LRyz/XU3LNGQ==","signatures":[{"sig":"MEQCIGf5KijaYy/9xCSZJ5oQUknqxBiNyplLOZ16xdVKlKTgAiAI6uHpMKwaPC9zkssM6tEbG6gJJgbZCer50OBomPvsgA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclSpKCRA9TVsSAnZWagAAKKcP/2mHF6hioI8+ftV5MQtO\nircSZnOIyrbVpIysUI2zOJ12q6aAremOEYYaCnno/SOawLfkoBX2/W10Uk+n\n+gBOogyiWUjjTOe8Iaji7h2JigfSYWjEc2+QqdgW4/WQsb4wrjOJadWZnK9I\n55KrENJpg3eJQvBVTQKHCptKEdAT1ptFK687Bw2J5zRffZU5kQY3xnUJcAzz\nQZ1wZtpDrBMPAaErB0lg+s8x/1nEMSSnBxgM6QOBhp6bTEyFtOhnhNaTsyE1\nJgsHNe2ovFnJeXn9GJusJTkNJ+JAGjfboA5ahqrexlSTfefZDCJp5M2fYc1j\nX/QGGvbHH97/27KV3soHSXgTnHq7XGTD9Rofo6d1vGv098p82ICasBNQmCPm\nIjNGZUrYgdftSeXLqN9RKxy2AhXMuCiQuBs12OoMYEWj2fMDJ/FigfJl5qRW\nYWsKAL84TW4bjB6BcDQGQADywaUWto3epHCLwFOkeovPx4SaO7lgo+SA/rcw\not2QB2hYi53oexoQCxOYplAYWMaUpUlY61mvY6AY+F3csG9DS3hn+13iTlfs\nAG7+S+U4796hv6HIxFGZQ2Bp/0FfRj9HBlgqcVn6KCItaYaa8H4gAaEksjfE\nmKnSmiLXT8ZeuH9+YgOa4ckRC9XlQm7hZ7oys6z2x9q8/yz7FXm9oaPcS1gA\n3oRQ\r\n=1BdN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"77192d647901443df54762544d2528eb8aab24ed","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v11.11.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.11.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.0_1553279562188_0.5302832155894217","host":"s3://npm-registry-packages"}},"2.5.0-alpha.1":{"name":"apollo-server-micro","version":"2.5.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"16193af6498d661f2887994c22df189a5bed4094","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-pGlju8I68CL44R9OW/1qqK8AD/LMsUMTv5RujuKDrncrd10TYlgiLX1AmsdPjQKzQUTeamw7x5GlThpe6jU6EQ==","signatures":[{"sig":"MEQCIAWcrduMMxFotBIlh8RX1BEcm+H34BXdF5IwjRjrIpUWAiAM1nmsvbVrLYiXEnFxOOlN6VP2nAkiA7Etf3VhA1bvkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmm5rCRA9TVsSAnZWagAA6eMP/3G3xMhGqSOHNOSjjuzr\nXmqZbEHucUOR8rP2iYoCWwD7F2mfam5o8fZHV0h+BXV2cMhQcE48J2c86ya+\ndkUGg3IuC+VLYeedQVz0eBjHz4V0ES77pMMzRfZ0qPVOlh1BKM8LzmOQJC7u\nAxpKwWETumaKScrhsbdeydut9yzcdrUkUP4v79KjIMLyPyLH5jhx2JX2dgQo\n3K6H3pBR4nQUXtnTg2+jmKR2EJ37cMqXokHNuvghhbv/tuGfeXVuehr6Ampw\nqzPLWjdfifR3oPhR6L/9KI/klii6dOVTd7Dt3vsvUwMoksaOgBtjzEL/qmGa\nGLjoG3Y/GJNWYuoYNOOBMS9Sj+sWZKthon8F1MocTewm+W24w/XuwN3rrL6G\nBhW6K22Fd9qcHEMYyyhSIM9XNtCkC+MJlA0b6v+Xoe7V/+4wYaywBA5PEzJb\np/UVB37z8PaGTfCO0XhOw+TBSzXaroXQeGyy/Q8Mg4M0KgObovAIZUBfrmk2\nIou/dB72O7NSbjo/lhqwaxPtNVu7nW2d7AJ4j4hn0r1aQSDPSasQL33fc2zy\n9AOgTxO7wd4Mi8mt8tbBrd/NgIJsnD9dHpIN/8I68ZU5iasY3ErnQ1JCYqXj\nUPnmsI+AMw3wD+97aCxi6HINuBnUap94i1t7LzOhWiIPXbqLnhRTxikn0QlT\ni+w+\r\n=zqDH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"6bfd459d4530cb32cd9d468bd87f61a612b93764","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v11.11.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.11.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.1","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.1_1553624682987_0.3005388709410568","host":"s3://npm-registry-packages"}},"2.5.0-alpha.2":{"name":"apollo-server-micro","version":"2.5.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d1e79b442f411265312db895ce0c4fdf0e03c8fd","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-12hiVeWCf/CFxwg86Vzu0KeWCPJDGq4GlUQe2jNzJOAK8FSKWa9en6RHWAEjZ7miULz8R4cLclf2P5fe8vs3TQ==","signatures":[{"sig":"MEUCICGhEbo4cvXz4Et6W2CKTgrGo6koYhLNtPGtpxnWqpwzAiEA63HV7BLVs/MSTgJEUyu9e725xanpkFH/Lrx3fXkmZTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp2yXCRA9TVsSAnZWagAASJcP/i2JcygcqPvAMASWoylg\notIK/pBQ0G5pOCeo60ZzIzgES7utsHwgS+UOT+rhz/7MtANtUvIQ/WTjmUtv\nSGyt+yjBY24bfMF9RG7LWX2YOJT/ax5x2JRtLCXmdJfRQKAbKJOQrBoGjrNu\naLo17QZLeFzdI2TLfJntLguYItaVPsviQJ2e/Jpj9bHTD9V7tGvbiUNY/FNL\na69/cSdKl1W9UogaGY4kpFl2qZG5A7LM0mzGuQV0Fg8xT/D2mT1FyVV7breA\noNJRhewQG1rXklrYIlR3j0CQesM1JSuTDSYvDMTSOVfZiV+sLuJoIMoIpAYH\nj7AxrXjRb9IqOk6J/7mBhLJmZ3m1ZKxW2rAcWg4V6dHcfwYzWkBaNG8RJg/l\nhfHwPqUc7C7I67jrqIStVxebNtIMtcKmil2x3RSLhsBucc6qeJbrht5fYZof\n/um/yuusFd6VPaBXGXyz2P8tOLZIBtzlE6RDHeiSd0uF1NHHwOtbwT+Kd8Jr\nrctilkAvzbEhwFItYlYY0tWlBCBoPL8pvpfsKZv7xe+DOkcdnbbIGUV57uDF\nC+p63D0DhxMZTd4JAeX5mpN5yPCZcD1K2kmLJ67QvYfJbuTf6TEq78O6H7OW\nF6f7YrE0hA/wsxniMAosoMtC6RgwjXRKVdHqpaTUYTP/YDQQTgPclxjVTmcY\nu35y\r\n=9TqM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"4279d56188e56f03b8a2c0e8c9e1ea05cc2ea2a4","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.2","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.2_1554476183162_0.7142322116139168","host":"s3://npm-registry-packages"}},"2.5.0-alpha.3":{"name":"apollo-server-micro","version":"2.5.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3fb894d2aa2c1eaa1c1bdd46387fcc0d532b9f75","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-ssOa8BkVBl1otc79rxvNmGB/yMn381ADJBniPc2cU2NCj3F+55M7U3xrvaEfZS3fClja46S1EMj2t/OngWOZww==","signatures":[{"sig":"MEYCIQCOz0CPKP1cmRYDDRiOryo00XKM1SwTZ89upAnnDHjBswIhAJ7FbL/jPXDbln+HaN0AOA2r0sgwlsDrDMbTMTJ3uKP3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp4flCRA9TVsSAnZWagAAqHUP/RXIi3uU3T5jHjDnNd/e\ne9O2mZe9qACbXUZqdoNQ+KKzP7ubJY0s85PYLDJ3APjDWNCnH3oSyvJRbnDc\nmeRKxZvedV+O3lSkU1nY8Ekw8onFlyrfzxpkxnruC3tOMgLwNuPVY0ViJb6N\nCPOlc/iUEJT1XfBfA6D+APCz7rRhJWyP1iqXzg0wdmVx6xGUamDRbjtjCmCu\nG/iEGwNo1tFjlD5gmBH0skVkYDAjE/B46cNyj6oJDo4lmc2bg3iTPCwaVMc3\n92Z7251tH4jU/l8/ASwcZevabWJFiGcCSizhf236D7lNFNjRTWQrLAU5cMkJ\noUyQrEIyOFMyehkwpelLrOX3p6helYafSVvR7Nc2+1r9zfusX6djQNWObaaV\nvngHQcOhpu8Kc4L3K3V34bGRgpysSjBbn7UZW7mROTxZwMtFiXokHwcoHVF7\nm4BUmx3Yr/w9p2aBOxjtnRFfeGHbqWV7vTTiLXPkpiCYrhsyomm1Ep/glPec\nQnAmphFNOTa+tjZ7lzMjtRXwSQ7ks+0kyWvYaE8NfwQta4BKA7DvYR3kAP2G\nV0kfEwDLHIfMwfitJAULto3Q4s0eP2kq0iGvZG5ACL7XAjKMkPPuxoeSLUmA\nEkvZkp1rknCfDHdW7i4P+APAUYG573v2dJ6PmSbg07GOjm0la6lSuJA/Sv4p\n/DLx\r\n=YJKJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"9e9543f6b7f7ce0b6ce6d59f06f10f4ec18d8a26","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.3_1554483172765_0.3031665181581087","host":"s3://npm-registry-packages"}},"2.5.0-alpha.4":{"name":"apollo-server-micro","version":"2.5.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"deafbae75b298eef513c94559707763fd86b4c3d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.4.tgz","fileCount":26,"integrity":"sha512-a6C+lrx1sMW+NXOg1rW0U9l6SPbnpIqaepgR8M9r6sRgeckx+cZJd7AyYM8QGtS51ajrqx7QFfoMiRgLVvnMeA==","signatures":[{"sig":"MEUCIDZZfeJYIvIEmzL5bgYkfc6ZmUC2tGXTXpE+afBGPbwHAiEAkyyP+EdoLx51Sb5z4bf2v9yCuNWtwlJPAz66Q7QDtGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp40CCRA9TVsSAnZWagAA5iEQAJjFN8l+QsTNVgvv9Evc\nV0IPG0waAF/WsRH5NBdBGzyGVrkEhhdj+YD1dHAzes+eAeXXb2+DSSzlcvGP\nHwft5KKUCl9XVeNC51EB5NUHfH5ja3hIMoOzT7xYjCr6XCe1ufClq93cyloI\nMXgRR9KyV1/njCPlaBgVbQI1kWq/UPAj3mR2hOtFyH+yGfOTdOccsZPKDP2R\npYH5hiA8Mmumhg8bpA4Iynl5z4PsaKIkuboVcu9/7G0as0xqfq/iY0PyPmXr\nR0aq9BOTrR07Z9v2gNb2EE1n0saXXJqaHMao4OrQJ/PwG815bWscQzij2822\nhHMZDpp64rBmH+5NJRV6tPVa4IMfuJ0HqCuDXDYiWR5OCLY2543GW6THDo+U\nyVpMUY55Tde+bT85ABfAlUmYdJFVVmZNdCWaGqa4LrNmo8kRTfXq8XZOr5mD\nE38nc31jRDaDoL2nsJbBcPWhfaONQe7d1VBw1IjF928uXyKi5TKZcuYNxRya\nm7AOHXT/9fBZrnC2yFFcqu9omI5eH+UfaH2iABox0N5JjXqKGZ52/YKPhlpO\nB3IJy6p+E1F65a4s6W5Oc7EiAYZec2tafkkzEjl+SzogXTXJsAXFfRbgXIlV\neD3cPQnUezlfPcAeIUsmxxn9kfsO+tUjxtjsy9sSgtyCsu25s/xJPUs7AGHj\nO2tu\r\n=BM6N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3c34c03c5af692b32189b650dcaf95f4d73f09a0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.4","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.4_1554484482000_0.1494344516631554","host":"s3://npm-registry-packages"}},"2.5.0-alpha.5":{"name":"apollo-server-micro","version":"2.5.0-alpha.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"07cdfecef5a1bd522e19a940483badc663f4ddc3","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.5.tgz","fileCount":26,"integrity":"sha512-Zb/t7SKe1sivXO24k2NSaH3UlYilySNBa6hsObDlTGDBFSBcbkfWxsDxzDGr22NuBCKWPut0Cv1tIkKpfuC94Q==","signatures":[{"sig":"MEQCIBtqELFFFkv8tXIdNRk1OdXj7VfIs6jx7VFEnuhMr7tUAiAMg86wR5aiRZy3mdZNSuZ2B50oTQBUh2+qPvKF6yY9LA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsFvFCRA9TVsSAnZWagAAR6wQAIzufuJB1ZYZ01Ua6ysU\nxzMVg/gOPDTBBgyKLX2Du+1RxcCFi5x1+M9Y70DO5+iRCfx3+5aOBIBmykQA\nAIcumBYeLVp+InXFXCQspvsglQjqIvbLN/wkCW9pB9LL3ARY0S/Ekma+F+Rc\nqKb+dN8ZTpyIpksF4+/Hf9/zsQlvGqnSXex2rji+ICZrRdFKFP0jgNNpLdlG\ni17IUauNqf3c8gIll9MZ7zA3OmhSxSJJEEyLA4Xdo/dTI10Mphdf51ngOK5V\n9+1fqnicoEgh+Kn5BFtNmQ7UuibE2U4p/TeNcd1nNOXnCzyDkZopERF799Dv\nEWdIIR2qzdHP9tVR9dPqsl1O7D2Odiq5pl4RujrftVJQz7OTsROPGHYX2NR3\nxeflVDv8nesKFX1idYhdEw/frz+eAK3AZCzVuw4zBdTzeRqhbVWE5robbcMQ\nVuXiUvKZNyZzswELP/kWXJj+D/H2ShDMs0rCjIcqZJIKE4Oq1RJzoHCDh2ty\nL1MCIu6oFpzkO1Wv4pPNmErg/8icQf/CZRFrIEAz0PgeL/OlAlDMdQyOcNd2\nZYHz3HFp+SzZs2x4EMOmrMBo/By5Vd2bAL4SCapm/YovcIS/fa29RRTspBbr\n/fdnNI0yaCLyLNfQazpXDh50YX1TGMuDdi4rXDs3735yR10lz5wP3PtW82Vp\nxsQi\r\n=uxGH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"be2c7ac98e7f279de067f6914ebb699662426b4d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.5","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.5_1555061700217_0.21320777072014585","host":"s3://npm-registry-packages"}},"2.5.0-alpha.6":{"name":"apollo-server-micro","version":"2.5.0-alpha.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.6","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"94470ab40088ae8db2a4f0e31bb1b92caf9b7fdc","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.6.tgz","fileCount":26,"integrity":"sha512-m5Sqcc6e6V7UYoZ/Zn+9Gjj1PAcv33/Ud71SeMEvn6nz1fBSHwM4cYLY12lXTWMm5mmy6FEiuTaCxSrk0Juw/w==","signatures":[{"sig":"MEYCIQCK8l98z17ROWecT2uquVBYhk40hL4Z7w+EwcS2wCh4wQIhALg65awNdqMsqgOaGWxwkb/nD+oNz7/Uks/zTiiu3447","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsq7iCRA9TVsSAnZWagAA3LQP/ifeKcPLgSb5Zl4FrcpD\nzKxKgFRZtuc5YjamfLo4rPqYeDCFMPKAd+dJgI4aepnuwLsvRB5VvFDi6LRU\nBB/t1nLd4/LkH1pfH9nK3hjTShO7+lCkPLkORJlHQCWz2g4E5kMbKGSxnum9\nHH5QwIhTVjBbfmNKkniXBcPvvg+JPIkZHt1ssG+Y6r5+Hxw3TZoQXayRMwCW\ne8ZOUkGVn1zExX/lQBe17eUTBc7lSp5nA5iwl09m4h1Trr9tXPk22xSc1Wji\nBQFeBdSByFhVi4KZUshAV7X3KSUng65rCEmBraSvwxkchjAcPi3QBHImXGr+\ndv1D3wsnmVVT/Jqy8gCtcwRxhri4dz7ICQ1gaAzcG+5SxV6zxfvGzs8NISRm\nRSF3BNPCYqjMyYMfawFjdBvAjNnCloEUA5jGTD1u4A+q7VK2tXVsxTIy789H\nWEdKm260tDS1ZT6FydLcKd6U8j5ZjXptBVZ0l2RSAV6rBVa1J6M68sa/H3gt\nzsulkYdf+eZrVI1/Os47B1dvpVk4kLoV97JeTiS4HLLr5fDDM3XDtKmtdsv1\n6qK/kgGIB4ESDp2GoTET7VVcpNRiz0RU9EeDBZKO78DeLf/MK7Vo0b5W48lx\nzQSoPXk0WSJghMjgJfKhjqATjofeyz0VZh3S9P2tMh5xCTOHUB6ZtAXY7PSY\np6B7\r\n=u/Xz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"551c7580cdc3082f590ce2c52161e51496d45cf7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v11.2.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.2.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.6","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.6_1555214049977_0.8510747563324306","host":"s3://npm-registry-packages"}},"2.5.0-alpha.7":{"name":"apollo-server-micro","version":"2.5.0-alpha.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-alpha.7","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6581ffacc5b3d264c171803be23137a1a4a314cc","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-alpha.7.tgz","fileCount":26,"integrity":"sha512-CU8hoSWFb+g8gB2S+lpSEBZOIMQA9d4h/vxkV6AIDx8X0Rfi4ysIL5reGpnLDpQISk9Tsn3uikAsxagQjRUbTg==","signatures":[{"sig":"MEYCIQDefShcJFWKPZYAOfFJ4PlTPEWaZ3aA/eVC0WH5752QCQIhAPWMX81U1FPw0NihFmB72uhMyRX0khrW9EUYOymG+fT6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwfOvCRA9TVsSAnZWagAAWx4P+wU1pkypHBxzBi9Zw5BO\ntA9AeUiOMQLmv3ScTR6s8zbl2KIK5nUQNiNaOOmmmVuyPUhV2/JemMvJbFr/\n6EUokNn3axBurD6F5YZRNXzrAzrHhZvn5lVT2+M0alGHR1+9/TiQedM8pF+P\nR7OjSgk3zGW4r4EZb/JxiT3td4T0pQssxYaq+3P8mvz7h4o93fHy257zI3pC\n5c2kFWJGItP+zsQS4z6EWPTuIul0PIwWuJybTFahZrvEUBN+ce6qGkHsGt9B\nxjqORkt604kwH+RUP1hfcu5zNwkds2aTF/mbH2pg62j9VMd1ltTbNqv645lM\nXRQziuNbGyzO98BYrvmY7aOtksJQkvVW/vZcHw77KRo/X1OmKE13c3gSsERa\nXm8VsxLGBWYZKsnfiJHGndnm/vHYojhTxu5ea7oCKytnqbZRJ1dzt/lu+w5o\nvd4Ni5f4xEepy9/e6PL5BHPbF1MLa/iPOCgsJsT2pC7LLERlIYZoYlAKPqY7\nQOFoYCb4ErI45/8X2WDskPUjmw/lfzYHwp0+K7rRDumgMiipvQjUvnEurdGN\nzWGG/sNkljt7OzkakBLAiU7bg/9R+H5PheNhKdAIy2vxRKfNK3/qKDFJ/1yO\nV1xEVxj3daMG1LB1tLwQcQ2XTeroL+AsKfN90ypicxKN/EBJ1vTVyQeag7uL\n/YzO\r\n=21Kv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"7b8ff7a9c14eadff9ba95ad12669197c1803cbe0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-alpha.7","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-alpha.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-alpha.7_1556214702747_0.4979248417716322","host":"s3://npm-registry-packages"}},"2.5.0-rc.0":{"name":"apollo-server-micro","version":"2.5.0-rc.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0-rc.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"662301e580486b0b65e01e257970f02bc446d453","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0-rc.0.tgz","fileCount":26,"integrity":"sha512-2LSIhgu28Cp/tOGS/sJVhskMoZzrL+keqE/A+/+aqC25sX6slFAea0K9LyxIIWd7dmCjbZqxFznj4sBZvfv+MA==","signatures":[{"sig":"MEYCIQDEb1xz+cUrI5L1b/F57992nxDYr0UKv4gPC4+Epio/fgIhAOAQWDOePe/BU+lDpiqQf7k/5pTKjdbRmJ5hC7wUtlcN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyDntCRA9TVsSAnZWagAADPsP/jSbK/Pyl+wgFihWUmhZ\ng3RjfL4srYhPyPVYvIRdRkel8spXGwDzglTQxgZTlMTfIcHJrG9AbwATvJCv\nZ6G3vo+Npy7kXIsNjtf3FTBLbCo+CqXnvR3esntxUrKPVBHWII7Q7DHozWUh\n/ngvGrYXC2CWJugakvZUzRqJHaUEp39qzOyhF2W4Uvj+wD9tT3h1KkTjFtkE\nijJCZcTKJgSKbNa9sh+wNW/arEABI623L2X85TZ2aeUh9CvVrxgmSUDjgZ3c\n3SE2Auja/CmrTBmPblWjiV9+n/Zq8fskMmJKkRkvEoPNPM60Gl589pekhX3C\nRewzffSzYlg/6dMm428O9j2Yrc3RDTeiK7pQND7FK4IL+2MMljyaozvGBA8O\nGr6THL8eF3Mow3v0q+IAQVm6TlF4LPqTLzxGRZqfTaMUD78WU1tJadvpJiQT\nfj3ld3yNZdN2pyRn5kB8L1TyLuansSoBOc/ff+oJ+R4OG5jk5lida2E1rEYz\n563C81B6on0Y/4TsDzP9U6t0W7+bXap/bZQ5QkUu7c2RC8v4E0Ua96WkYT8h\nqIm4/3CrZF6pi6WlszioeJ9Oq8u8MHcbW3Udka0fQiCAPodm9b7Ml1snYl4d\nH+n18rAT7uCviDfOCgr3VNWWTdW23lpAeBX7gymKwyyubxyM85KIMJF9KOvd\n+1Ed\r\n=em9q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"5aef85b143900bf64f9eb3dfaa5093718ad364c9","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0-rc.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.0-rc.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0-rc.0_1556625900966_0.9126497949308097","host":"s3://npm-registry-packages"}},"2.5.0":{"name":"apollo-server-micro","version":"2.5.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"bad1f6846ce176b2d8e63a03a5874a4095bb680b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.0.tgz","fileCount":26,"integrity":"sha512-tU5LJjTZDduN2P5Ls/0F3nPun721bXi/wBCoERzVr5GdHfpNHlayF1KdyLKp1ZcW+1NKRyfsK5q6IlkkhSMsIA==","signatures":[{"sig":"MEUCIQC1HtUbKmBjGX3l9Gf6X3m3I/aE0JeBOLVPQm3/W+mYvwIgE6UITVaty3BQ9bTgrKQwq8LO/z7zInEjoXsI65OfRXE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0X2dCRA9TVsSAnZWagAAVWgP/1zzxnnysHq/YlX+Seo8\n3el06nJwSM5P9WSJEKj/LwvrHVvhKbtvLesipPZRRhbkOD1MpFVzrqKqVT9d\nl9GH2oxmjCuTybAX+RxAdkw84jImyhFatCCGK+aAWObvudNw9lehESPWoML/\nmbh0CmBMqJvVAbENyZfHObhy/1TUMmndFvF3z33XMJrrVQ4Radxavh7H8SFx\nqIye89Xrk9K0QgYvDjiH4fpcG4n/swS82SrxQeX3cqs2V4pKTx7eLaEQ0wRN\ndNbgIanXzuuFiks87nDYaEbO7brWDsy1iljAVqiBFjnsx85obgzWQ5qZ9pER\nCLQEMfY+BzveOlbSOkO8ZkQaQhMIQm+tSdC4GnuhEJKMnAI4R1Ww+sEbjI+F\nEiBvGAobier26lEdNDdst594ljpbMzjBX/Bkv4BdytSCVmvJ6RMKLEJm253i\nAlfKZFys9nFfOX8pFETTZzWI8c/zSbijc/Xxrq5lc03jRs+yP5Ytj3t0SHZo\nGxWgGU+zYDu+TJKrhB9A5WPgIA276hDiSq0PypC3qD8qAkMpM8BFFn28hyOK\no3LnfQXx8uPtXaWSAEgPc2OWeyfiQcIyUzAsg1qD3zgZNtvNl5olFJ+Kib8j\niZPsuqCKtNcagD5llujsGRt7yNHkbuAgbvZhkjarVmJWpGCf+5AHwcYRPsKD\nOkou\r\n=/QFN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f7e8ea067d6421fbc8ef41f91d1e673cd20f08d8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.0_1557233053100_0.4309633596084739","host":"s3://npm-registry-packages"}},"2.5.1-alpha.14":{"name":"apollo-server-micro","version":"2.5.1-alpha.14","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.1-alpha.14","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9850cdb86e7f04ee088d8ae02c25661f12dfb7d2","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.1-alpha.14.tgz","fileCount":26,"integrity":"sha512-OxdlwUgQ+cQLQXvz4IJ8PIor96MaPGw8IcjUF2KzijJoRfJFS0hj8soRXULCV4SExIEyTVN72O+q96GXtQ2J+A==","signatures":[{"sig":"MEUCIAUQJXQEqCcM68YYo55msfIGioQH1fQh8zFAyCAk80xIAiEA+Y45QrGk8WIp6mrRBZHUIVLSTeQm6H6eg12JWynK/U8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1Nw5CRA9TVsSAnZWagAApe8P+wR8FjebNLe8LaMoic7z\nzEnmTSTGYkBsjTDIJXaEQTs/qm+1Nhm9ZBAXAnUSuiPgagXbl+FmfTn1fVWc\nxAUBw9zX/19zl4PaxANO01IoGV5NoTRkAR7yjK4hUaOQDo40+KfA5F2WsRkI\n0n8rP8gLctODVO6/q6iu+lsSrKNVbXQYEDHyBVelqZukp+u4uC7nI/WhOySI\nZxPHtIXJPafyGE1dEQnnkecyyM9OAO8v0UaNxJBFjwNW98iRufwT60hq7N6O\nvhTezUIRJkZCugrl2jk/CTdtCHNQB+W401dm2TEj+Oj0K4GuKNHr52sJNRrP\nMWf38pEuF2bSvVKpFB9fJ80e5td7NNmVxBc4/mBQFQggZ/BLeXH0jD1ldw0F\nQVkA5eOOnF9s8ypVmfEPNF2c084q/FL5jCCl5UcSa1aANCWOIagBvtKTVcER\n4/7Q+bq1q0uEcXdtNwV2IE0QXAo9RIP+kAyt6tsEDnoboRJ/9gtSaNYiCkae\n897tdU5Clc0CfaLSCuiPYKcmTNE01aUEwJQKvqJmkDkisFPIjbl/NqLIwbxg\nvMBAjSfr+9gNXsZGbTxZwf999TIktvAv4epqOvMsU+OJHSB2xXcFsAWyL3fo\nxCssn+8MPCelBJkqTZDbX5IJKcgYuPTYGxmz5miJNhqUT3sgpbLW5GRmSYEA\nkpav\r\n=iErY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"bd51b22fcbccb6284e465f26681c5b359f13c05f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.14.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.1-alpha.14+bd51b22f","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.1-alpha.14+bd51b22f"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.1-alpha.14_1557453880288_0.565942964018691","host":"s3://npm-registry-packages"}},"2.5.1-alpha.15":{"name":"apollo-server-micro","version":"2.5.1-alpha.15","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.1-alpha.15","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"53b16f148ef23f40e51147e04e059a8d96535fbe","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.1-alpha.15.tgz","fileCount":26,"integrity":"sha512-8kQ8nrzVXzX+FMF+wlNOuXYJVghl/FK2Mm0jR+l76gLfNnATv9/XOswsqpCDhYhLbLEtL3oeuhpjjd+85CAtZA==","signatures":[{"sig":"MEUCIQC9Mm6Dez1ZfafrNn/WMofj3Syt+IsU94kceCPE8AwGWAIgX1EVa3KhvgRmFU6uSQd+kMkOutFEVPjyy2Xr9+f38M4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1OOKCRA9TVsSAnZWagAAfZkP/iqFBI/5p1CuKTgFIsZe\n31Cl7DRJpb7Fqw5UGK1zOJBAy9Avgm7rtZHF8rEnocX4nvDwaUH4XOQ1fLTZ\ndHAVdpbWgpcrYFaYbivKV88AfAJUmHI/sb+sNgxHoG1qt4dGXAGQaoA/GJsx\njAjPNy5rOTBZ66RhdIQfvQ9V8Ozj97wvzgtaNmD5m0WcywlCWDMAcFKJGWS0\nNFCKtZ9ckFjaAZAcTXoGM0WR1rvYkUt4xubjbXpsJTQSwHTpj41qGHicsyzA\nGgOmJ0t8ot7t0Xta7wdROPgn3mqIDwKjctCy18xDeIeAvjob/qE3kA0HjNOE\nbPHlsOlcCp23ZGxvv3S9vbA75Fn8S6MhfRzIuhzqD+94cKs/xpA9Ydb5b8de\nX8Z2Jo6+KXHGqlH/fNH26jQFTSZPDs74f7+bORCpJ1gu8otSKYnmEZ3NLO9m\nmxJAbYlx5mqH9+EeNVOaMD92qIwKIetGmRin4gy7a/3oC8/1+LR2rr2QP8Vn\nS1Hc5/dJsWCkIL5ehX5QAEQdB6B25CYuN29oRtvvcbNVyK8iI1c6bRfGvpUK\noDDMHH/bQFq73iw+/j9JieUr0E7DDVaUcRzyPVyb5WH5Orq9WXweYPmG+Y6I\nSZMcsP0Ng+EpNKMVsd8nzWu8BZETTs1N3J4EOLThe01zUXfvcJnsyDTgdD0i\nxc4+\r\n=Bo8E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"e2670f66c1d39eb6597f2f524683843f4d95663d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.14.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.1-alpha.15+e2670f66","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.1-alpha.15+e2670f66"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.1-alpha.15_1557455753793_0.8922795346006154","host":"s3://npm-registry-packages"}},"2.6.0-alpha.0":{"name":"apollo-server-micro","version":"2.6.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0e825b9b1a26f8c3c61a9cd28b0d26c4c13d2725","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-rcXLiC73yL7EmXTvXuBSPHXk0rgLh2NMKsdxo+Jn9yYpwO+jG5/fNhu0X3bxUsuGQrNlWTWJZuhCN608E8b47w==","signatures":[{"sig":"MEYCIQDig2lNEAumlSf6Z93wuIrYt/N+inDRpa/p7Quf+N/iewIhAOMHJKPH3XTtMj0qMLayH2HUHXpMLLxmrIFHqLcrAiLV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2cQpCRA9TVsSAnZWagAAKRQP/0sRX4/LWA0SteIrmJzL\nGJw3KZjgtiEBcBLJ5mtluyp8lDtTn8FaERgjjILFKfv5H+ju5Pb2dHN0Jpl9\neIXbTpXxLZRFeIAGjyJq5IX899cAQLTPhi8OhY8PX2Lgbb0gvk9OX56Bvoqm\nL4gnjpThjZPdCjI0qW4OtkfKxUVI9ubZAtwwrKsTwNhPRvfVQkIXHA4YWPXc\nxz1ebv+tRRRITGD6vth7Ix9bms4IiyR6GuNK9ydCWG2leJ6e7/UpW9z8zq4p\nTyhs8+Iojoz83URA8+22e+JY2DIDJo5xG/Rj3VP9joHsn7APj3D0BQMlao8G\ngglg/qaaW9sJNS36spCG+aCpaoJA0PoVpVpV/bZIx1q28Mv8r3EjjqaSWT7b\nJHGUwGhhdKKBM1s97kvmVfgqnwKT97ER23D+0GwFsd4+o8E4oPz2tGlsPsH2\nT+4w612aTlNhUJrgJwsmHyUnXDP3SqtCy6iDgceZYQgTd5nerOWNP0VHaQcI\n0Nz7QN9Q7yGwmU0U8zTESpvS0KJ2r1sFL6pASCB8QoL8oEp9WwlXMbRqv2Px\ndymQA+2oK8WJfpNzygOl6HMSlE+IdpfFnFvwh8elNlDhiqEe0xJbi4m3kYw+\nVLG7lpkYjzU6lN+JWPHRsLHyc+ZyKX/DG1CWGO4qMfwTsqP3fPoglKqehqHQ\n77l6\r\n=Pvz4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"2c2f1b6ed2c79957de1cc11a298249f67f2c59e8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v8.16.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.16.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.0","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.0_1557775401154_0.04710240022831025","host":"s3://npm-registry-packages"}},"2.6.0-alpha.1":{"name":"apollo-server-micro","version":"2.6.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"79a988aff0c3daa23408506d861a851b3fde3adf","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-+W8rrgMS22hzleaQ0JXY7HcfiWNWWOrJu7+mmPqMxzKj10FpnIUuxCqt0sl6nAeKYCii6nVIjYGK3y70QFzaJA==","signatures":[{"sig":"MEQCIGDqOznno2t6qxEEwFm1A3Q2orwYKMZUODlg2RK5HqG2AiAJ2CG0xyxJu5C32I01uj7SVSl6Ek2GyflkSE0kvya9Mg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5ZZKCRA9TVsSAnZWagAAbYsP/2TH8hj8pb/YoLRP7w3U\nggD1RTlW0L83s7G5FSHufg8H7eYA2ONRO35htxSKXA6sZMby/njtHKmQ79ur\nhvyU+t6eX54vloZTAK3jY8CAj7b95CvoxCefMCWWRRlEIgB3EMjcSm62eyGv\njDeE09p5/rMyjbpV0zwLMcKzyIvqVvVcggFnUkjzT7wJm4dTvFGVbjxE164M\nBpyhl9pwq38KkZ380F/b2IzMP53/Bq6AGxN50RPtVNDLQ/2/VLzTzY2PEWaP\niR2+rMEAFrRm45uhSKJ8ICc1b0I4+5myfsyUUtN4pMVYEeJBjkTw8ZSiwKdc\nbx9riThQEDS/yUabG50nM6UWgUNXnX/E6K/X5Is7XTdlwnlv5vZ1z6gohEGG\nfW3mY4+0PqIxCbr9M00vM2zd2xefZA45oj1UmNskWv0kbyuR6alb9n96Yuec\n+c97+dzX/V/iLn+TGqudAtdb3z4xcvTsBNdTZ35VI9sip2IJ0FvfQinGBou4\n3PAyOv5sCZb4Yd5X8VvWPbrUV3fGGRQci1HvBlxz3Famv6T6dJmyOZTXdswV\n0zfpwzEvxk45YQE8Mtyr7KJsRtaBCyB5YU09LSNGtbG9xgqublIwEjenlmPr\nl/sofQ0JIG9mwyq3h8fI9WOWM+zVEvtAwr+s2N5+RE4m3lYCf/uavFNnWcPK\nropz\r\n=SkiT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"81282f920f901994544925ed27f5a2c77f8a7120","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.1","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.1_1558550089469_0.7394212159478639","host":"s3://npm-registry-packages"}},"2.6.0-alpha.2":{"name":"apollo-server-micro","version":"2.6.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d574e231c633cce8a44dbfa9281620c46558ac7c","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-jKFrkJ7O4DJnI2UTuX7I7lDHadxg5shR4JNpf7XaJDl8d/SWMHCmmyHsyGaNQoqSW3Fh8dBuT09gQk3r66izMA==","signatures":[{"sig":"MEUCIQC8oKxvS5neAgCr9TR3RyzjmgUtNRuuP6641f3YugNRIQIgB9xHBvnX1bH8ARATyx8rpVoM9KRaYmCAQbjjwGGIy9E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5axlCRA9TVsSAnZWagAAIdYP+wTRoGBklrcFlj4NoYM9\nSbDdHss+gt3MnHlCG6N2WSrroYaZrCUei9cxpoQ9qWJBnNUyIjgz6OTX0WGR\ncuG0waM0YrPzHtPvhjBM6Ky9RyTGyQXXKCr/dQJUCXAf9Vu/F8TUql2A0cVX\njnnYMfKoVKQ4RwTUkUcJ1ZkeNY3nvpCdCp1MzQRIIDkUFi1kogQRWW3ISIo4\nCkMU1Q3+kjMICUyLRfxyw9RgwP5FPKEJftdqzGswoEv7d5JclrYrsOTnTEIo\nipuYHKmQdpcUctrC2wqaDKtvYvBN3zID6GmqMQq/E5jBnmbprBa33P5/+tjF\ndG0M36xYT3umfc0Ohi0avl/zJw08ZvHX/BbF5UYTp2IbUivAurPuAoO5FFHD\nZyP2Bvmifyd0DV9IqtAJKpR2Hhpa4RlL/jLK1b4PhJpkCPIIOlzxdgTWr/OK\nvpdUltwvMpr/4/UONqfKuqH6YlV5Hm6yllnhz/Ey01b/G5zQbv+BaEphA3wL\njRvvvG55nQUBG/9fw3apaO8f6az9OdqqgTr2hAz40UZ60Z2Mv1UUDt2a15dc\nrtZTipeuL5bb/CO5nia48FJDVAm+q+eQJ6aYA5pSxclGvJGYn9T3zPp/Wqso\nAp38fh5rWIHKkYqgwrzr0UMibpZ3w6QB8L6BKoVTlZXOmuhBfyZKUsTs5XHS\n/TAE\r\n=Vjir\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ecc9880ce99428eb6a62c0e6bff242beb1799f27","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.2","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.2_1558555749169_0.42297926410104814","host":"s3://npm-registry-packages"}},"2.6.0-alpha.3":{"name":"apollo-server-micro","version":"2.6.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"fb8477608e270bb6bbb35c3f9e6941be9af6bd06","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-RkYOkYPMTOdNjvuoahqWXq3rU4km/BT9VYaHLC9XpxxjtG12Y+xElCE/ixZa7BrRrf25MiAtbd8/tQ5ONxGGwQ==","signatures":[{"sig":"MEYCIQCodhbxrcKtMtgo0wr7O6/xG5xrhL30chPTKeAJCNKoHwIhANQi7j9fQulmVMm8BZf1KqQeYwjCsHtTs4YSRq2d4syK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5a1wCRA9TVsSAnZWagAAd/wQAJ4ZrhjcamWKz7UYQPwv\nWcBpGAXXMro1KSJONKQeNNGail7CKc1//UNsvxoOqPEyZxB+eduQM+oKya9G\ns2ResVZ7fmdHvhf8IfJZ3u4mjQ4z1Xr74nh9bs4rlLev1NMj/Q9NggUVAnrQ\n0APX8p+bNrLiEy2FwfVvjqAPfECSlF83Ju9TcyrAJ5cE6MWiJUuxzoSmG1vU\n6LnrFJohpSMqrtGbk3hy5cW2gvJv3OHXBzbtFoHIHvH3r8FLHnyOKFE26D3v\nbLcT/Bci4qEteQ/9u23VBuQkCBnkXO0hA9xTWojOOkJAZJLCH+LZvDtnXmU7\n6bkyYZNUf+AsycAm2wVh/1TccBSGJVUZIV04tJLXNtT95hPSfqjGeM6z2sRy\nzoLe8xyhByB1qgzZjbuwBO4oRFtq6oBUKAcoqGq30V19nYhZ4y6yxh2ZdT1A\n+wBpdDe3YHwB+AT+q9Vqj27iXnx4MowFildfL21WYJxHjNBpdOmr1F1N5n2w\nyd4OpkuT0OSRzj8eR892vqKZbhsZvYhKoMK0AX/pNwHbdUZcuHhmhByEJoLP\n2ZgJAGG3V8ko7p9XTtPsATdzJ/GN4UqbjwGbDuhQNtQJDoGVUUEy1gWPrkka\n4MyDrgVQIFhmqYCKOzNJvQh1pj5yEVDB75y9bSGyIDO6XwPSUn9eLjOTeJh/\ndzy6\r\n=BSpz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"7becac459840988ad698966196cbe120c7d680ea","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.3","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.3_1558556016133_0.9883093109180467","host":"s3://npm-registry-packages"}},"2.6.0-alpha.4":{"name":"apollo-server-micro","version":"2.6.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b8131b5539eb6cdb266d6afa90340f6921a781da","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.4.tgz","fileCount":26,"integrity":"sha512-araX0o9o0hkG9TQiNSrqxpNgx2YCRViVDchkzXzRlhCWpXHeJUrBS8MF6E6QpEOq/7T/YJUgRS7e2qtI8d2j1g==","signatures":[{"sig":"MEQCIAqGQoJjVpV5MHYZaCOZhsLqvYKhm3xGHjASPH4KPJsIAiB7BQerrw+mWn1rx9isklsHAxIAXK0lG7+/FqLP/X6FCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5tayCRA9TVsSAnZWagAAzZ8P+wXy9WQJSN2lPMuZufYl\nCYYLTM3yhgAS9o0SsYQt/aWZgxjCiB6jBe5L5TD9rE7tcehEVzae90Xza85E\nuaIUibKWgTqibHHM3V3QaRgkB/GMvFKzVC04gfR2dDtPvonKkE06yrsorTQd\nrODe8+Vhhs5hqvl4OaPASgVVJ5D8RNM/72OKeW+t6gSnrWZpHUwUIJ+MoLM3\nfQYovP+vW/2NPWiKDkkXud0cRjsckICxodwWAfcEFsppue0B+3at30CT+Li2\nGFC0L3CSSR6iFIAOVXu2np5YYgKaorYTOqSflBYI6rUtrJ3xcSzheKeIOcC0\na9hgJDPuTHxkXWTmUfOMwUyQ8foQCkIfJYubnBD0g09nglRzMYVloZEB/01K\n1VxpqxwjvA+20eGoXcQ9dm0J6eXDw4RBqZQB++2ygU9Vr5E9+W6ZYwpkRSfW\nBvQHpb4IglvBGBGY3rsG2f8KgcsYip837v0t7xtVs7cQDKWaohULci/GYjVw\nyP/5OaxpHr2jddOkVlFTZurvk244FiCZ+oUP6LwSt1fBwf+uCwGfcrKWm7kj\ntre/QkDAVa+9tn6U4oN0aaqX0yBBDrlQFP3jshlOzYMaSv/PflOJoL99N3K0\n4lbfIxIDKpLR+bgeTXES1u9dvx65KWjiWloR2AtUQnIMNvUFbKqzSCT5p4um\nm5DF\r\n=EAaB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"bae1f5c4b748c9935daaaf899f5508af18fc2c41","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.4","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.4_1558632113738_0.7069579967795951","host":"s3://npm-registry-packages"}},"2.6.0-alpha.5":{"name":"apollo-server-micro","version":"2.6.0-alpha.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e28dedcbed228ead6a72970fdb81911d8f936c56","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.5.tgz","fileCount":26,"integrity":"sha512-qeP6pUd2+eUbJW2+iX97lQi1dcXXa1MYK5VZw6X15/QbsbA6/CAppYbJ8oG9P77cw45U0q7VonKHWBTPhFumMA==","signatures":[{"sig":"MEYCIQDPUytRws8N3V0NCSdcIcKmAHEquS1A6HplZSSi8nEmHwIhAJlvjbYR2qNM+xsZd4FJwSbRm3SfBoKGEq8IASZBRviY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5vcOCRA9TVsSAnZWagAA3jUP/RhfOJdPGZq+L4W6+KsZ\n2Mxow9lOjN3RZb9MpCmx6gWRapj6vduTFRVnycpsZ7Xexpe2ZmG10Pk1EE0X\n7RZ/KWoHA/25UO2aZ4Dj4p52w2EVuudfLS53ouYxwm1+Ieli18WQtKU8IQL8\n51jZ20VpcCf7YgCBIAcEFMFVjD3qAGZc8M7oTteCnrAagT+BLqSwqjvUZN/t\n0MSZojYq/ArAkA1mk/VqqIPrBt9k/Hu72t1X/cdKGOQqDXnCW8ajcXdUjRDH\nxV2cp6+R/sT5gUKO+gDhKEDfdpHLNae9L2jAYoJCm6uvmq/V0xalm8rWA8RB\nUj+4YauV1d615OiJzUvWcHp5DwNIteRVrCwJJ8mHzDWVjEWSRseEtbY5XNUr\nx3C+ZJJsgRtUbE4T+eu8pXP1YWp8K5nsckVEAt+stf51DWo4W2g1p/AREhGQ\nlWnXyapybrq94OMfaXQ38RebbKDoke1SscI11FhLutYCSQYYeLyXmwf3I+hN\nH4o7X6A6JE8xyzE75/vS0VAfEtsH7iymvGL2wgJV8Q9dNzwt4wvARkINHd8D\nlZt63bLlsme9VdXvEp0tDegz+T/5Jp5ThtXlVUrQjChCU85bRXN0S3Lx7OuJ\nnZX6HRnM1JlKBUK2Ea8nZbkDp7UaNcWVfF443eww7b7PyUKOlt3EwvX2jveV\nTbGN\r\n=wA7r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"2654dde239e1b91980bc58c21bc576cfa40e3966","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.5","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.5_1558640397677_0.8747048532458417","host":"s3://npm-registry-packages"}},"2.6.0-alpha.6":{"name":"apollo-server-micro","version":"2.6.0-alpha.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.6","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f669951af039d7d1f9d3851fa582cf15d6179e42","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.6.tgz","fileCount":26,"integrity":"sha512-mqJZtygHHqAKMZOcpM9erfdAVMAbLR27vB/fYAd4MeFkXw94iNOryUY6grcNVRwFj2D+XlYoHBRwPhd8ygAqIQ==","signatures":[{"sig":"MEUCIQCuNfOhgq+Nvpm+/how0ZHw6aNlcHlAcOpZN3N99wvOaAIgJOb0rDYQF1WJVFQzzvOuDCJKFabaI67ArCewswVcvBY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6GCZCRA9TVsSAnZWagAAM8sP/1FVF/yrhY4W/V7zVcAA\nFNws0yVCWNxIypPJUo3E2Xxe5UtrNFmiWXe6gfAgJRIfcBRGkMmRaEtAX3yz\nSUrvidGMzC7JxHlEahfPIFVLzb6rpQoWK3J3VPVf5mXmWlqsWjNQU8YcKMPp\nqVs74LBIPuxfgTtU8ZmUnvmD0cwn5aIS5l0qpv4VspMdTdYOZN5F37potKkW\nQCKXyqx7qFQ1BIs0ojpnjoogj2tkHGG+L6EC5IrpsFHzP6fdxp+0Y40wc8Tm\nVi1wBDyBk4DvLPbjMoOqzXuOB0pWBgQP5QM8ECYkIRLTDSx7gd6WHsSbH7mh\nsR1v8x1lvwrnq5cGUkCP3h+aitgotU6i9Qa8m4O/TB+Ba62LR88D5U+jCei9\nEog5rPXWUONo8eQ3tvdamC5iFxdexUuHLzkPlUUsvwFOi9M4+ic99T7TjM2P\nJTCTvbfEb+sRpJo3eWNy2N0lX3o8rDlPzaiCdfNwY/u+XTHEap6YNbx8n2ew\nsObQYbpHwBJH1jviu4cPbkVgC34UPPyyt1A6DS1LxcZtaL1dkQREll4fTJ++\n5TVYyDJFXWV/cgrUGDoNrrXnlKJGMg+KNhfnGTdBNIDhNWcm68lZ5pBsggW9\nWTGSxRTEmDh9HQatQ/w9xlxNTnBCkp9CR8PJDWoK+9WEouIWE5yhlaYlB1bO\nmT99\r\n=fOb6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"590c1baf5cc5aebe58a9532c717453cc9d344a31","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.6","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.6_1558732952904_0.17003759930599016","host":"s3://npm-registry-packages"}},"2.6.0-alpha.7":{"name":"apollo-server-micro","version":"2.6.0-alpha.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.7","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"fbf0976cbdd431346c2a081b7e1c263e12c1c4e1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.7.tgz","fileCount":26,"integrity":"sha512-BnMOfC2/g/C+k8cqohPaw073Syz4Vg6X9aiCaueyXmdVM37fs6vdf6D41OUJCsuNw54G8b7gCSxoyDThIv5b7w==","signatures":[{"sig":"MEQCIH9XmuhSedd/1xk4EU0MclE03x7vZ/gHjOKBgtU60y8HAiAZIE+uCyppv3ghzpL8a2yTPxIG7pvKwYjuDn0CDIffGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7CwxCRA9TVsSAnZWagAA0dwP+QCtm8g8ntxugqb5iCQS\nE/ngxo7wTnzE9+JtPQu4sYXYGHYajcv9Fuca8tauyD9hHumFiMvoCQF15ytU\njCKSjq6kDfF1Qlxqnc38qXUlpBIvTbU52/sCxHYjTzVUGgxovpd2lExDsw0g\nnXGOgSF/8jCS3MjiUSF24EZkPnp1A2n4EoqGGfd8RQ4x0+rY14+iPVBYWUqF\nXQUabH3hXHGM+P2MvePZDs7ZelgCapQozXmq0/PZDSbJ6eccTGNLk7GbkhqU\nez8NYTzq35do0pXvVpujw81RGb7of5mhsEXeKLas9r4PEjuHuPdojomYxIlG\nsdKsxIvgSh1VlrfI4edtDuonnVNKE95NTyD+L644/gd5jiW6qFapKziQpipO\nMz+ljsRYp8wvg6ZBVT7e0tgI5XDKfRlYhcPxxtyLlOmpbQ8XMjKSDWi+E+gN\nLAPTqJGIXZttYRyAwjp3xvqGm0Cxb6jlDAPKrNl6ixmavOJxtFGG4F5YEMr9\n3pB4wSAurZliEP0TLIFcWNnI2hnQOkOVp4rvpOO6FmOU0gM2ZjBPjFn2pKtx\nLUOFhF2MuIB4ORtz1bUXTPK/mEKDMEZLp1MaBXIrHSpRHZX/jpF97x78HB8e\n2mPVnDbRVnhUr/whgre1leA0rHbAGUwEhuRrIkCB0Ro9PVUBvj9ByWgnXe5H\noM3M\r\n=tkVd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"b544a25db9d3c6372f96210f901c5c9076610391","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.7","@apollographql/graphql-playground-html":"^1.6.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.7_1558981680715_0.7245032469532966","host":"s3://npm-registry-packages"}},"2.6.0-alpha.8":{"name":"apollo-server-micro","version":"2.6.0-alpha.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.8","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"24b16fa1bb626989f9ac4fcb7e07928a002a4b72","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.8.tgz","fileCount":26,"integrity":"sha512-Y/6eO8ZWw3YIjrKvOntzi/pjTsETzEYizYh0kJUSEFil3bKjH82/E+XrcjPTogrftT0eu0l5F1RvdmOANvnRaQ==","signatures":[{"sig":"MEYCIQDiVTN6UwoYEia+ODZsGlaeqSdbMRfWnkwDl8AXbaKMAAIhANn+8gn0mHH1dH36R7HSOCNYJgWNPj4K0W/6HYpjKf3O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7VMlCRA9TVsSAnZWagAAt8sP/jJRYcUB5UsszaW53sD7\nZi5mgGqJWgqYigwOY4yEpdPSSrxGS2xznb5igOVDz6cta9yGY6NWOUb6G1Eq\naAM/q5/sJRqRbEEOFwsQM/i8Rm6ys0DKl4KMdZ0m94xmBArruRjmr1VTH5zc\nWpkuM1yL4H3obtJ9MEnBclEGhktGkQT/pLigwvoDz/IVsec5yd7pBCAihf4D\nJIgVI7FSDl8vJlm5/ZK2nTV15xxQYi/GfFfoHVcCjx2iDtd0xWf+F12gwpXt\nuK/cKdcDitkzzVHBlUz66sWXUrSt2LU2xLB8lO1aKJytRngTQm7iZBU+3WKH\nPhcP3PV6h2lE22QSFgrSZZH3RBNPPkzO4NHl6YrGOzpIHU67ECB5i2yUwMGV\nFfzWBzEIwh9tndhE/WkmTyJOJtah1L1aCF6nafF5hsWzidVXDp8oV54KwHYq\nQtZBF9JzLizxJ/hI5Tjj2AV0fe+JaDv49o0zIkBvXhBqlqd9oKkD/kwZYqyo\nMSb/V/c0rLOx5QNQm1P+TJr99lsFqH+Ute2InBGCjA3taMZUhdhL652F50qY\n8C//nooHvFVug+A3RCfrRaZKEc6reb0QmTII59K+72MOlFA28oRo6/ZYkmFD\n1Q5l9wv35/AdCr+CjCRVGNwhvwoKEsTNyihDTwv2AUnBqXLZ2tS74zd9LYix\nLasO\r\n=Jh49\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"85c1caf6c52932493f6f811faf59af516e8f7dc5","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.8","@apollographql/graphql-playground-html":"1.6.19"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.8"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.8_1559057188580_0.3669995132848183","host":"s3://npm-registry-packages"}},"2.5.1-alpha.0":{"name":"apollo-server-micro","version":"2.5.1-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.1-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9e2353fa67de9c54d6cc0355d2e938d20f6101b0","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.1-alpha.0.tgz","fileCount":26,"integrity":"sha512-JesCaFDOoBT4pGbI2eYNN+Vf1SRn9X1XAhDoTA3yXo1UCxfZLcTh93MscrEdnWPBQuHrdukpzYA51tPoIZRP2Q==","signatures":[{"sig":"MEUCIQCPGrQjt933QHED3gJsf9GUbzOOXdlr9p3GYBPhKqPzAgIgWIEclp2eKogQIBaCZwJ6AjaR8398jBQ5pn+33pAhGl4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc75xFCRA9TVsSAnZWagAA6zIP/jvzjmc+pOwK3PSXo6Mm\nHKcPA2BrAnI2pD/2T0NcRAdpLoyMLA6vkU/vAsMSQ+bZUyikXWBBAQVnAgx6\neOvnGtGncfGDafEWWa/1hwmYOrOfHpAXzScC3VXPrO4TJEaOjl90T859uVTD\n1qaH1WmObZF/K4qrYnV/Lhi4A8Cb5xDIwrVi8iwvr9n7ycPpjiOfcjenkO7x\ntILjKN/jMkrhd+850fP27f4uSgE5wf3Gpe0Ec2+NoFUPeBg7tUyHyq5PUl1F\nWTi12aieJjbHHzLQt3qIGMRF64j3Jal/614bodwq0NOU5c86d2rTAZm8LgyW\nEhK9qFK46aGRgKE4chUN6u68ye6qcIp6Ozv5EoeVJL/svclJqAvplTjPzrFh\nC/7G7Ct+/miP44w/tpp7b+uJVBgJ+QnQxQ5Etu2VbXUh98rdMKVZEDR5eOI9\n+TCS1MPhk21kOkR/HVrCUjM0HQDLIQ4cpagQiQWohRvVf5SO2oW3oL0BL1zv\nXd8+l6oKzBH6Ad9d7exBmudhAWAOUiAXGLjGgYZdVxhErKUaPOtJHw1RnIGL\nYYMakXs6hv2a7vDLtrB546PuWKo+wUxf9GBP1BwPSikwru5igZY0P2+XgISk\nIfaxC9XLJqmYLSvmRkMSVJezBUDyy5K+32XJp8LqrrddRxMgMv3Zsh29dpOK\neJ3c\r\n=efKQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ffc00543701cb66dd0d83798caf295e4052473a8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.1-alpha.0","@apollographql/graphql-playground-html":"1.6.19"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.1-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.1-alpha.0_1559206980483_0.49097309503126807","host":"s3://npm-registry-packages"}},"2.5.1-alpha.1":{"name":"apollo-server-micro","version":"2.5.1-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.1-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e602a1934acc695b9ee4fbc6cfe2ad8d5f4c8e95","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.1-alpha.1.tgz","fileCount":26,"integrity":"sha512-nCBoxHuhp2x9+g9pmTC3sxdb5QbTk5oulVIaRRHi+tFaiD6ivtCnZpRSqDkY0yKsohEumuqSMxHpC9PiiuidoA==","signatures":[{"sig":"MEYCIQDTFggoiiq8TQK6dRRTdPguCskbeko7XSZR4Beq89Yk2wIhAMG9/re9BlQnYPUR7Ehbc2Y26K2/YhFqiHXjh+zWHCaV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc77cYCRA9TVsSAnZWagAAFdcQAJgLgWUFwqD5ljyhIOak\n2hkk30dwegkAQBmxnypqDywqDLA1UEDx64G9CTZRgXp2uvdysDMTIi98j1QE\nCZwKHJsoJHuoLVsupMtVs7KbHaWyQ+zsceNdU+F9ACHzsCWcxf3J4HmZ6nBV\n+gvnkKm6c6uJ6z/3Nv7Be775fYjl/ngWExfuKEys345T+qYvGhLAiHajXl2h\nzeOWipw7TmgXhNBzbcHt4MnAxu4J/JHUoodpyFAZpRrM+GK1ytdNaCs0/Bu8\n+eBzvjTbZExmfM4z6Ecpde3eQZSvGLJ1i0cLozHm87sfQKPp9k2S9TbtRTlL\nKxjNgzN8R8HZqbQ+hkF22eTqTV9uDT97OCQ5b6AqBca4xHJ7oKLvHb8WYMRr\nIM4RrmOfRccOgXx9RHp8YOI1XeQ4CCJAroNUhhw0/JVVS/d7iDazxTV3walR\nRKovQDDZXrSUHS+GRenSHNq9QmDEGoqJ4kx4gw9Vq1ztq8CivPLckBYPe/J5\nByOnAE9SdPbhQqQCh+Yi/3t7jQ8lEEloOA/tsL0dcSCeiYV7dFi4Xxq/zVZK\nps0rK7Y5X4ot/Z9gF2odv2EOLJS1eRt7cWqgJfTFFcwkK5vx7JZtEAfVC+oG\nUiWdz6SpBXAb+uVZwuFI78F6venyYDQL2D8JXaFa+BoXm3oPrX4UK55Y+N21\nxeDS\r\n=cMHS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```sh\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,19\nconst cors = require('micro-cors')();\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```sh\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=18\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' });\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```sh\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js line=1,21-26\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"240e8973a67f6404f46ab1fb8cddf6a0d824b242","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.1-alpha.1","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.5.1-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.1-alpha.1_1559213848299_0.459821667808074","host":"s3://npm-registry-packages"}},"2.5.1":{"name":"apollo-server-micro","version":"2.5.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.5.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a97372d3e55a77b2af673c12ed130ca3e78e2c60","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.5.1.tgz","fileCount":26,"integrity":"sha512-9h4ztivACsqjYeeFptjnxNwxZgnY8PcwYKpbw6E3wCNmFja8JraQy7islNhZzRDf8sNQ7ZZ7IZpl+X7TV9UMxg==","signatures":[{"sig":"MEUCIQD4yLttl/qls7BhtoZsx8aNA7ud5g+LNhnlvo9Nl6dRvQIgAJEDHiR2Z6UJbYNB8367lIB8jk6EMnT/75iIjKIbcfU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc79gsCRA9TVsSAnZWagAADVYP/Az6vYgXNsRJhr/10GBa\njRo7R2XStCAAKMzYQ13WLckltMGqLlgauGG20MOpbX6wWFuKWdvz+8Ap302R\nRfxC8vQ0SXRQ7WnmWzw80/xyM20MqbnFBHifF4Nuud9VE+xC94bYgeDbLuO4\n5CrlsJDMFoJAoKARPFOeLKfGG0bdfprL3VgIaXD8i9bcp6zopJAKKg83fYgk\nvV7k3HXLu0z0h2ijJNMqKL6fhMYe7BzQuPgiwkj3ponVH2+mRsCxuSbltvYK\n9WyOHAIaV763COKi96LEd2dKL7KQ2QzlOZRoDILjTOrae7TN9COFhhtdChrV\nrkRa5J9ZZ7kRwpvRqTS9iCSU4wX82nyxRcpcbiNMoJBEIp+qAItFjTK3JlX1\ncJMcR6WVP5GI5dQFzGK4c4olCI4kltPlnwwSjzqVxD5YoTZC/XAjT8Elfvr7\n/JHG+cqA6AmrX1GP6kJkHyAJaYki7E49COHd43CXcdcnANIw5Hm4Of0dhwqa\nt9l7ndaJUQtMFl7Z9DoXYlJGsNpulQTOLvzBVBRihmQcvHT6cSJKj6GYaM46\n8H4mxcSRdERJOlwgtp51FxSlYQeDMgaDZENmw/TMEIgMsCDUVOPhhytZGHTv\nJQcZeZ7uTK4mPZO6Cksnw3Rowo4iY63bRVEBiLmPGF6mN3ZqScDw1a9aQhCk\nMArR\r\n=8541\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5814f0a9f53cfff131f0b127301866f9242ce196","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.5.1","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.5.1_1559222316158_0.6046153463277169","host":"s3://npm-registry-packages"}},"2.6.0-alpha.9":{"name":"apollo-server-micro","version":"2.6.0-alpha.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-alpha.9","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"fb13a1cb4b2dfc3e4af6e44d75c63a24314b3e56","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-alpha.9.tgz","fileCount":26,"integrity":"sha512-l1//rGnplYrI4ac35+PvgWOQP8hEapmh9300cGy5OSzFqFFx3n1iVM270rh4UIC3C4NGKbB4PwSEuMjpvsBBzw==","signatures":[{"sig":"MEQCIAKm+W07JJ6gc2V4xf4HWfKgJwXrWb7S49KBMuVjP5WxAiBsd6JO02i+ZlLd8ag0X3be9TN9h5SKmosp6xRwGElAPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8DUtCRA9TVsSAnZWagAABuYP/0PSwvGET2nlmXb0XGCJ\nm7JyVj6kVjJzdRLw91dbDsedPPmnPEt0+c7RXWj4YgFwWbfakqs+KToW2UDh\nns6Sl1Opf8OjEwUvC4VxP40xOd4XsIfDTT0DMXLzmFufGZKMpZWuiK+DJj7v\nCvLr1z8OVXFZ7xg1n3D9Tv6fwSSOLIPDB3IZ02eVjJ6dIUTUKkVam0BPS6Ni\nNhF56xawy12VM6A6L3L/k4H24S3KIpnO/7LIfHrbXdss4xRQ9QFgDzI7lupE\n7tH1dgArYzNblH3ma9Rp3BOw+6ucRmU1s3zQKxecixUMlG2NdfYIIKK7RX/B\nqzox1oAYngRhgKjc6aNkWRJKFvzt1JdieRS+Ni/4/ROzXVh3o3sq6uMXTucb\nY6nV31wOPbieeCGL5AsNU8hrDNtQsgp/zVTHum9j459hvXMid7f4cgjiTEoQ\npdAIQPIhge2jq0dAPiQHXqo4//ur+7j3sHJdaxNxkOlTsSLNexa5464BCaS+\ncrfMwS0j3IuNBB3CXAb/rSlsPJVVLjry/gijnd7o1nYP5uJ3WewkLMBLG18T\nVQQNf1zzcND7iTrBJRLhH3lpiJOQ/l/YkdLQUfNS6PCrP8fvDIrG0ZnXpiWN\n2BYwj4SR1kaV8G0vOvKMrI80nNgqHe/7bTFX1dn/eyA9+LjcrKXgCaZ4pFRd\nX3sq\r\n=qX8U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"fdcd0d29c14a76bd70931c7bb5961b49a4f84d0e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-alpha.9","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-alpha.9"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-alpha.9_1559246124753_0.2949269609875289","host":"s3://npm-registry-packages"}},"2.6.0-rc.0":{"name":"apollo-server-micro","version":"2.6.0-rc.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0-rc.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1b8c86bda0013017fa3d6b39bec49aa0e025a09f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0-rc.0.tgz","fileCount":26,"integrity":"sha512-NPOU2BQt4bEg8gwDnhcPGQ0LaaeYkG+C/grgNBHlDuSytPFVIBppcUoQCSYpfQuRTCVnh4fafrYg30wzCxiB5g==","signatures":[{"sig":"MEUCIAw7F0K2ksdIigSggJ24SrZpInggG3BzsivIIq0QOdMEAiEA6zTl1Cr+/sCkw5yB+X7CTQR9yLqKGqXcIvFRRfuP434=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8D1RCRA9TVsSAnZWagAAfJwP/R4AuwMKd3p4t1WUhoWg\nHonORwOWfG1V5nWrDc2succ9bpGHFzxXu/CnTGtjmtT9DCz+eRCyzRHkoapR\nHI1mqaWg0uU2/MQTf6q5uJdF7T1pV3xFL5nzMJ579EVlUJVMnUh3MmYrqQrz\nTAfqrB7ZtlabVP9cwh/nY6HGsk4iRzfszcMvTVijOwnLoqJ3uALqzDzo7R1A\nlTXwGgZfEHZmjLB4dg9tHIgpuZtL7KIx+DPoDMI71QpSgcsHqm+aeWMaHCU+\nIGKInbw54UJRVAZ0+4maKLaAA11m75kWEyArin9BoM7vwVOfCPQQ6WLZmhtQ\nCUANusW8taX51DlXePs+IcOdomCYJNj+bcMtfHkKlXYSbs+ltOSHmUSPGVSj\nsmKvQSIunWUx0kwwY9mVfiCrvjRNSOcNCvSmZ1wcrnloENSoIdz5cNJtUcz+\nzpy7x3x4JVzuUFft7MvpzN9FycfQWdipnQqx13HpWtJFQRQ6DPIvGcuyCrfH\nXGchCS1O1XSVzXulQzyfZ6XNcH6wmfmjawdDEh6q1vod4dQ1nV67KADU4Iu4\nmL8OFRVhyip7knan8CsDND50CjtdE4EsHQxZYdo8EdUMfubXAxelRxWd4e9M\npay7vb527gQGWaGdoFs8W14bWQOlQ5LA+VDTKghUoa4Rofvo3dR9oSz814AT\npyDG\r\n=UonM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"cfdac5365781a2459b3daea5dcc6769990cbd666","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0-rc.0","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.0-rc.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0-rc.0_1559248209184_0.990053146349152","host":"s3://npm-registry-packages"}},"2.6.0":{"name":"apollo-server-micro","version":"2.6.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"06a2e0d0fbc0bc6eca24e8521426d16bbc2c8d70","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.0.tgz","fileCount":26,"integrity":"sha512-joOqKdWg0Sg+2hqYne8dLd2Faw/pg//2T+xIDLcPGHyNa9e08HtwY2MKtK3XZg9jis8B9nhzn0c1TiniPVFLhg==","signatures":[{"sig":"MEUCIH2IccV/6QwerE/JkRH1vZqtuK1IaS44HIdnoqi3FKKfAiEA9lLHfgyaSC5GYRA6yUehWVLsH+6PZVZKrkFps7OO42g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8WtxCRA9TVsSAnZWagAAgLQP/2VySRRoiMkCMmudeoDk\nxOAfZMke0k8c5BI8eQ5Vb9ZAQ1siL3gt3oX/TtA0CO1Co4lJhHYMv0ubyBKp\nWRpxUF08hQPKmMrGXcGHG+bslgbeKRgVKZ2K3awHKUb/STdNbNGA1TiOvGJK\nKg1EyoDWGEODc8ZY+zAculk0diA2bgn4/g1x+VYUp+KmPhKuBTbkXZldin/2\nf/YLa/+Wz6iyMhvEIwXMr43Q8niWxxIC3EtgViLrJTMmQHstM3AWbumvQJr0\n+jWMhciw+1+Th8jDt8rR39sbsjH7e64xcrmDcmHNpXJc7XoFhzOnTix6hUmI\nCsmPeexMWhZdCVNrcz3am0ajAfUIBSUeqHVL9Lk0kA1CBxBOL5zyjvaumcPV\nfUQkgV44iY0bZhQyWqLg4P7Hzr7WXVJwsrsYeHjRNwcbaLYhHmAb8JXIzLEw\nqBzocGQmz0j9WSDLALetfAWnU+vy2GQCBPklN6d/1TikCZ3/0fvN6iFGKn93\nCB9cICDyjbPpJxbPZES/2t7uaSBSpwI6Ww1hSj5Tzt9Vsn3lXiOf7pHNwD49\nUa4l7rZ5KOQXkA5u3Sh8LmnCQxxdTRjvnXU0f5Mh+6PGXmXM5FSsebOHQWvB\nF7IOvyNBFxfEVGJwAs4HJPNUTEsZycpJwhTZS8TQ72t53nbM9fjFj650Ro1K\nURx9\r\n=FF3b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"dcab64689dec2d00a9c6d302c7c05c5ab847e855","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.0","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.0_1559325552555_0.35988760743875314","host":"s3://npm-registry-packages"}},"2.6.1-alpha.0":{"name":"apollo-server-micro","version":"2.6.1-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.1-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f8227f9ba0ccc3d987651c2db9e20024916ed58d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.1-alpha.0.tgz","fileCount":26,"integrity":"sha512-BQuuFcYmyO5rqGRs6bv81nMXvl7xTeAIBVWD8E00GHd/FyFd53xHl9A4W3cAiS5P2b5J5b4d8x7tHiCQ2tR3+A==","signatures":[{"sig":"MEYCIQCE/3zhkAM+xZoncOL5KHjvdpDzZd9+RKOchWq8S+wnLwIhALMOKjoLMylhvyuxUi343cX3g4POibraUTXCLPqFP8Ue","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8Z+uCRA9TVsSAnZWagAAlp0P/AtlU4RQb+ewg2vg+Ju8\ngS/PWiWkNg5ZUEAY81LOfeVW87wGrd4CUOw1E5QFbIxO8+Pe7DDbymaYL5M9\nH1GZsfdmn9y0/7fOINI8PBZI/q13y1xGpQzy0jxdc7BSN/4lsU7CpbWKbYp2\nIwFADE5e8BbgONqOP1J+ZN4TEclHNdHbbNKY60ZzsG76GXKjwT8yaOTtSj06\nxDxzAVwFNi06hlK01DAH3hWv0WKYxTdvo2WXQVMK+xNsLvySHhZwPAH5Bef1\nJELLVVZo2mGbhkjIyPt2odo8cZsC10FpWyUEBaaMPODTLMval2gGDf86XY8Q\n4bOoY1jfxcD1t09IW227jlOzgaA68/NWMpi3UBzX6NOSQgqAgMxxl1uIOuy+\naFu7H2vMzOCz1Yu7Ut15ZukK4gGL+7fWn4zmoND7eMwkanOiOGTcB5E1vIAv\nSUfwgl/MiuUChE+tylegECxF55EdMOQE+HsMq05A87i20Lg2KPcM0jAtMShe\nlvb0Ce31rF0LmfrEuBGVDloe2OlqW2NTxQpnFWeU/d3nHG3/MpsCDdemv2yb\n54Tw1QpldJzvb+Idza8E2qooHVlwSAFgsMhKaAXU+9ycL8KJ4xAA4hSKByEm\nuNtA65Ye55F0I0atjruHaWQERpJuzoyGe/zIGEOLp478DlaGTlbvysciDL5b\nN+YF\r\n=2H1B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"acaac3c64a050eac02848cffc32feb514825b672","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.1-alpha.0","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.1-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.1-alpha.0_1559338925462_0.21997069855609408","host":"s3://npm-registry-packages"}},"2.6.1":{"name":"apollo-server-micro","version":"2.6.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0bcd219b496a836c719bf547f03fcafe8ac1759e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.1.tgz","fileCount":26,"integrity":"sha512-HKjV+xDKuqLRYjpu/fA9wCF5sUknGqYBiQ++cQ7W9TA7j19AgEjumZq8T/+t4Xpn/Kw8Bno5WaVRWWbOphxw6g==","signatures":[{"sig":"MEUCIQDP2okUHOpL3PRUcQZLbdJ6i3Z/tzz3QGcWfTBVU84OawIgVMO5c1dRPfH+qBl/cV0pliQfQKYGkEAFq3kncIFrpnA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8aSTCRA9TVsSAnZWagAA7W4P/0wRb1oYnfq5SuCrEIeU\nsfzp1LnycNJiRUG2FIRPNtsv25gtF5mol3ltWbqm80qs2gmQ0rQ6b0qO7LPW\nVEWqDcs+cMc0Y/bOQoohRF/8EGJpv/WvzTgL1BQmT83pFN4RcueC3AXH4Mf+\n2910fF2jFMlivr/q5sViEYBqQHC38j+EqmCtem7vXW8aF+tIJCMUlp6JBXdZ\n4WYwUq0FDMJmIuLel40B8n9w7U5lDe0ceXnDaWsw18q4gqf7qpQIl+2WsV1n\nlmoGKGNoONfuZAh+O0PjEF4vTc6iZBsTugqtPTiMHSa/4HyEKSxjXbtllJxH\n+LuEVwMAIUnQRfjsYxtdpwNTFlWN31uzbzYntNTX/6A2O7no8GhSqEWhh3a6\nsuzitav2d66b6Fk98eBLq+ouyz2qtzU7g8HbasIJjWqUaM3ZEmwZXVKStnIR\nX+Rhw3dQCfwp9waXf0Cu2NsrxeNi4m7EnmNNG5BE2w/dQNrixHAziSLK2ReW\nnVhOkqb4eziUIriBNEKi28VypEOgjZWZOPeLIa/jjA4sohy5QeT7zww24ykd\nRm83iqPg1M9sTO+eNZ1yw9kT8eCXZx7J//YnceK82llIsa2g5oz/DcM4EsJ6\nVb0MwvzBdrTh2FtOjDCRENwQQYFnuEQfhKcQ8gWN4Om6scmJb33KXxtJ4nSr\nQplR\r\n=ouyI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"77b044169d61dd50f8426a1ba87710cf38fefd36","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.1","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.1_1559340179182_0.7835602029602657","host":"s3://npm-registry-packages"}},"2.6.2-alpha.0":{"name":"apollo-server-micro","version":"2.6.2-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.2-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"aa4b712c4587debd4a714f582cbcea643156eee5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.2-alpha.0.tgz","fileCount":26,"integrity":"sha512-SS9JcYywMZ9Mw6sg/c/NCWRPw1+YzhtSa7bYLg5H00CzZ7srnNxAkXlWgqK7/qSkxVBMD/TCByfR0QboEG6rxw==","signatures":[{"sig":"MEUCID+zsPWlw5aS/q2Ae/mX4iWCQzFyhrVFyaoNZ+v2NLnUAiEAmCMkwI0by59HFDjWdj+gpWn7u+11L+MGMvf1STgRH0w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+TDnCRA9TVsSAnZWagAAYFoP/0I46vy4yyncH/wBZK8j\ngBHvOAI6sV2Mi3xY8Is6bmayobsfMsN8FuChhwjuVIzqksLfeYzLm1Lx8LG0\nrfaX5q69uW5SFx6Yq5jxRuD6jnXsfQSkjei8kOYYkDO1pqbGe5oKMo8U7m5d\nllY5dOwyNYp2sdBh2TeYlaxe+i23yCCekOHXmxmbzlMZUvUmFybp5BspdK1z\n4qWbZuKNO07COWtsTf4iSkxiBcRRFBcmr60rhD08mgM1McNLOi5AwoW8AvvG\nnrcfzQSyO3p2nF4/j8zj/9Gw/DE3iuM7got/eboh1LRuEW1s8XbmXSZiKv1I\nTkqKTp2LdhgH4QL82OaSexVc31iBJnWPKG98A5oPsoXlrfvs50EWtaoiRORv\nzH2k5krVJU9bTl3vXVaLgfU5ZrY3rHhM5MTLDSFv/Vc0dqD0CwZWI6AhVjjT\nHSTu/pK31/dNmMXwviP/16PfUSc0i/18ibuTsLir6HXlsgNhyJFZrykJhLz7\nu6Lll9+sql9rOttgMKJo9aOQk+KmlMFap5eBot2o9CRzX3K98zqhtkPcfSlD\n6zwy35KhOmMl7JR3AXbyeecLzlaWgePHjxG7aoc0Q7iuTCecMx45ZwPE0Fll\nnxHtwniGaeV5DtsByFDAAWcxvnkLfinaiGJwPmrmpKg4hQdg1jAJBXSkV5PU\nWLke\r\n=IiAe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"d7d9180a88f22b7259742fa4f14cadcf34c557cd","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.2-alpha.0","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.2-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.2-alpha.0_1559834854594_0.7227129496886493","host":"s3://npm-registry-packages"}},"2.6.2":{"name":"apollo-server-micro","version":"2.6.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f071a6eeeb66e53edb9d84bae08bab2cd670421a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.2.tgz","fileCount":26,"integrity":"sha512-OsXY8vA7sBskVjJyLK2v/6rRpXkbtIdXHvYl64zoT5FRANXxR/WfaqJ8oabR7JxC8GShDSlf8zUoiSlGHqwYQQ==","signatures":[{"sig":"MEQCICs386qoI4hdjLecmYbiVjjdkKKtZuVzQBtQajupM+C2AiAvLx/l7I2NYQMGG325Co4X4dH+GQU5yby7ddcrxZ2ROg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+W4qCRA9TVsSAnZWagAAH8UP/2T5XnteyTaRst46Q9mF\nZ5uYzTBlxR9pm4exBhalXt1rDA4p8obvGI2cyHAaH0Xo7oBxJAfX58PTnckr\n4VljVvTtVTILFwp3EQ4zFzSJ04PLqFloCD5qqeidoBfNcOUgCIGrMslSXf8i\n2yOluVEaiLl1mY2MOg3RbOfs/mw7VScWr7gZNuHXBmrtS71dXQakReIFTIHG\nV1dn83M0qs7PQgDn5x/1vvQLv0ozA1EWz4Yc0WDOwvGW/R8poynVtn2XYt7E\noCPjxA6uzTNQkeSDuUu5c/18MuCmRiUC1hV3zV/DrTJAgoNHE0eqrxRYH2AY\nvMbj+1DhnX40JmMrvrn6ev+j2sfSHImnGxmePrTRxKQBfAmMqcI9suFULtY1\nSJthc6j93MHEElTp4o0jwI8AXsE5QjmpIyxX6Mt3PjE8sWBeaI6pAb/aLTTd\nzYgF3JGxpTm4a8fiOmMyS3eLLJAMJy0YVkGAsWvW3BYu1dDBJHTDOjOhMTxI\nGbqHe33aG5HSVIbR41GXpF/0daDASL3D0L9FxPQ8lxvlCDVkzhZ7axY/oD5V\nT0J0Bzr0jh20TU522QuybX997dpK43v0Yvd/waUt0c9urhbD8VZpwcqsjK+i\n/ce8nCEiwGDCDDRQmn2Vc494qUKlwMBk/grzfkmWYwJ5dPTyDTUPCn+qQzI6\nxDes\r\n=ODUK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4fdf6f2aa2f14854b54b0d6de7d477afc7702916","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.2","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.2_1559850538236_0.734701392177699","host":"s3://npm-registry-packages"}},"2.6.3":{"name":"apollo-server-micro","version":"2.6.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ae2850d55dc161fe6758387ff991479dde1e5529","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.3.tgz","fileCount":25,"integrity":"sha512-CgNk2wf1R3SRZU2kzNB0Q+uWJp4eOjmTehc8/iXvwtzGhPPcw2BpaC2p5R10xyQqrXUXSFmsrmnn0+n9U/KGQQ==","signatures":[{"sig":"MEUCIAHRUhcMNYbW6wC3ijPwQ6TgA/di7GvHOcUjFIkHwI20AiEAwXw2ifcr2So2f2qBlcta5mwnlC9tduc6nz3xAozR9Kw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAJdJCRA9TVsSAnZWagAAR/8P/0FbLwD/5w2X8+jUo2Rm\n5w96Em2IN2wt1YxuY31PRLqchFDG5pJGu7FrSPFf4+oVOc3WH9lVi6oFapQv\ne9jaIEApoyktZv4gw2qUFgPvGO6uaIsiL6tuwYPSiJDS93yt1WmNxCY7eabC\nBTrMCau+3C+UvgrsSX58ZtYyMdwxnUFjhDmYZZGm6slDxmqiE7o4qUGW27n9\nhltJdiVf6r+Dv8MNcDhcZDqfjSR8aAnuvZHKkPL5rgg88VQlQEA8bdKXnHCJ\nnncyIYprKCtXocCssayK5JDU/b4GhSNRnMY9bPJvQVCTh89MqzE5D61tRg1R\n4OdYwfhhHykUQUYv55otXKCbbP4BFjXnXcEhx4XSdXS638QKxqCJTHyL032T\nk/AGNtwH297XsSI2ph7fGRrLT6UcHzVKWc9ziZXosUBQzVrYV4UPyOKQUibC\nI3S9RBcWAp/QLPiqg6kj1stqirRGGKUBTfls/gaDLpcE/W5fOgMBqXe1bsxC\nxpysfCpXDhk5QPWtLCKBy4RYSqKTdGIh3K8Xh44qN8UerN2bz+Da3X6AZWJh\n28WahTLsNsy+/umEEVZypJMuiTwpu+KmXfETIScg458UF5l5G6YBIgcZEO5y\nobeGxHquFqdX0CeSWrLCMSWToBwagfAXMBFQr6Ftpi4WeuT970Wq4IWKUnM8\nu413\r\n=KVDe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:apollo-server-micro-2.6.3.tgz","types":"dist/index.d.ts","gitHead":"9af8063d7c2fdd56dad5144604aef78781ed5727","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"_resolved":"","_integrity":"","deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"6.4.1","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.3","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.3_1560319816337_0.5483977329440564","host":"s3://npm-registry-packages"}},"2.6.4":{"name":"apollo-server-micro","version":"2.6.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ed61c16ae815db9b3793c09b9b33892faa1ae700","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.4.tgz","fileCount":26,"integrity":"sha512-6V/1yfLPMZ1F90jsV9BmIq2TgTkZ1QItHsQUxJUy7RofDiIXkO9+o+jZ8MAchtZ1G7PhATonD66hVllb1aifCw==","signatures":[{"sig":"MEUCIC1UnCiNkm7eSs4jgXMS3V2KzFVjB9bth0HEaKyK2iiHAiEAnvmp+r1f4iSR3tMC8YhvWDFKZYHu6djK48hMgi1Btl8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdC/GgCRA9TVsSAnZWagAA2U4P/j+8T6arhU/7HpuDHbsX\nnOoyUYpmU2J3gdiU0K0NoAN2d1IeivtMSzYHJmTOJ3vs1no1Ek3f9ONjn7LK\nKzQS1nVzpaRF7f3g0Cr0IQrGMkwNJpcLZmEaKVQwGgmMN76lemSQPTZmhFcP\nh8JbSb1RKN+X8hIV7qjiuR64tkC8brXOmpBSzdRQL5KbSlMyxY5wS83XJrn1\ns0C0SjDfIyAljWwliVd1N3wReA4o3WjTEXYOx2BLErEBd0YjqzEqtwzNyPn+\nsaM14y/25BrhwNCBXLfY7rvSVJACK5ZdEwSb+MsfTk5hf6NDaq+Oot27gFlk\nDzMlC1mI01mWeCJAiVdcQUGukFZJuEgWPI++ITuFMy8jBpuBCNfbxRL77oHW\nyCr1mRpbQEcwVLjQCLBWEuxV4dsWoMwrGeuZnFQF4O6i1z4XmgvY5740rzf0\nVij33yozyWf1QsBb2hTP7brHu1ubzlbpun56JTdGgLJB3b4CbecISQpJ87Kd\nhtVWCiUusVSiiZJNBzImYhLmoze+z1CfZi+812zifmsRLzArVrgnWhrZ8qGQ\nWOHoWVMfSEk9ss9/e8jDHM2xDkOEZsx9zybZd++mRZAzaz3xuVLDyfSZBNDU\nrRfb8k2rg/o7SfOf97ESPh/w12VLnmkNotZpPB/4b3avWLtqOhfV3Jh5f1FV\n+9Sh\r\n=i1W4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e6929134939c653fc817ed2b8172b4ee42406bcc","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.14.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.4","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.4_1561063840195_0.7455999308664991","host":"s3://npm-registry-packages"}},"2.6.5-alpha.0":{"name":"apollo-server-micro","version":"2.6.5-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.5-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d948cf83984c16f4632ea94ccd0dfcdea8955340","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.5-alpha.0.tgz","fileCount":26,"integrity":"sha512-oQ5vdlglDDqBhFwDnN6svmKzkxSWNC05o+g3FXzM4B5a3ADPxXQU2xBDJOxNTCSEu4fNqhUpFlu+vVleiro2PA==","signatures":[{"sig":"MEYCIQDvRb0G4QAxoHLktuDSZ0McdtTY6nHekU70ivAIMxrP0AIhAMSz/bW/JajJpYZKuTn0C6fLIF5mFv1flgM38CJQ4+Tf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdDQsPCRA9TVsSAnZWagAAlQ4P/00ReMRr4O/uW66uS4yM\nBUrg1aONBZpkf2p5BHZRurvvJ9ZjoiXWhRxnbntBXvx8c74MnqaoFpLK/88F\nkO5RfPtX3VpkyV6c0Iu0wg2ok7tv/zqYDyfJUQbzduHqwJRgUFaICZUH4gW5\ntqTyxzS/M2jQfzhk7ewpb7owceVPDN6nSDbgKU56snfKoi8oOmsQ3YYqfFMB\n0lRpEh/gRGh3Xmk1W0Jd5Q65us1t+EfS0egPZvpReOB9zgeqLe340Dk6kVJn\nPSsiG39mhtKagI5ceQuVwayJReiiPq6JgXIf7c6m1GZL6bLtEuY1DaQFsFHe\nqto8HfsCcGfwlh/Abt2jpoTocSCOVbbyfuZEUeU8hKMl18RDx1imIgW4bitn\nHX47ZYOjn/q5RUl7X+5fOY/thCsnaypD46QRHd2W6orUn1fVMSRcDOTKzEjW\nswVBzrcmTgGHhq+Nq/QnvOdla7dFRmj63laobkK1KGWWrc1DENJfPwvJMpo0\ng47k2mGI4QNK0app/iGKb27DjtrZ4zwhu0bi/hEpV7kQZ33rAEQdVpdb6vqR\nBHoxbs33wZPHDL/VnjC3NhNS8UeoQa22Nf+XNTCgdltvLJ2rdaW/lYwuEFF9\nZ2IuJsw8rQXFNtzr6y8DW6j0boaakLD/o18O0yTozxjFFSbkQRmPueOUs+R/\nIDEA\r\n=dsBe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ec329472a9c779331132a0ec4ebec9ab9709ff8d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v11.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.5-alpha.0","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.5-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.5-alpha.0_1561135887163_0.9426309133803088","host":"s3://npm-registry-packages"}},"2.6.5":{"name":"apollo-server-micro","version":"2.6.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9bd31166d5189c6a775f6fe11c8d32159df11695","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.5.tgz","fileCount":26,"integrity":"sha512-qdggjmc/8fpHr8LVTH/FD0J1oatW6vzoNfqpuEadUEfS/hM/7t4ai0DY1qt4syHKoCALT6NVK+O0IJ2u/IcYiw==","signatures":[{"sig":"MEQCIBDER/Qc3pTA2R63oxT4KsssqDxkjd9dDW1FjI51iwW7AiB8bFaHc2j5Q6uGjmNn5UzAGaV7yI8QWFsPq2m2lFFlTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEknjCRA9TVsSAnZWagAAvoQP/2+HR+iH/WQ5eX0AqbJd\n+ydnfQ696BGNL9fUhx7h3yDSK3TMdS6K9UlUW5sf3sL/E0aVESB/O0jRQ5+G\nEB2i14wUPDH7nGbyQ95pNoRVoLB+JhoaSTZIFaIEix/LfUPgX1FGguQB8d5d\nc7k7mAorsOBha4BS4DUhQCBA3eHv4DhcIV8PzlIvDZb0ZCNwa1sVnboy+mdl\ncO6xeZB7EErmCNPDnKehhPfqmDfhNkRIsBAwgOkk308FZg8Xee87GBW8g5SS\ngv88A9VgnttJqKJeoOI6Adf+55EGlVp5U7mymeQZBco/cbXBnI356m8cHEmh\nmP7vfv0kgrXG1XasGUkGTnUF8/3MRGwjkw9k1o5BCtpxvI/r/8QOHOI1Nurv\n3SBTo1EhkPPLklCP0j/jMhqkNNtvIeiHUSip49TNPfeR8RfhV/p4op2/mTi3\nNfNsizXZ3eK5JUPccmRgkpUPe5Ev5GJo1wPq7sMJDJakUAE5olTCgq09EzQm\n4TzKdboYV4f+kQAHYLZ8t72F40V/rkRvkHb6vtQzCPSKcq7nvJ8H7VUWj+B3\nXsfYUWUf1Umck/D0gOLkBh1mfOrLYtI4iSLYuBTXqneGr/pEchUiBi5rVLBO\nwFk9mUzEtB6AVbC4zefHsosMDeUr5rlUpcnm8G5UP2OXDlZB7xewNUuSG/C2\nD//6\r\n=4j/5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a2b2a0d8f013826d08433129a69834035e04f1d5","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.5","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.5_1561479650978_0.6910532014495157","host":"s3://npm-registry-packages"}},"2.6.6":{"name":"apollo-server-micro","version":"2.6.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.6","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"017ac18b4e59b0e21b8aecde3fba7306c2e1f832","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.6.tgz","fileCount":26,"integrity":"sha512-B1WdhWNF9yCgEBIJ0fyWeZ/dO8kgmP6fAClJabcUItin9X0yKnHt3j4Tn4vftLRgbNslw/epUMG9CEPgx3K7NA==","signatures":[{"sig":"MEUCIEAvmg3tM/u5Te0imkLuQFsJFg9iLDcwyKA4RMdWDD2OAiEA4i3aLhmX5fDoD9H+W4FnZNaPVQybVMQUnc9VXDYIuQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEmO6CRA9TVsSAnZWagAAekEP/AvGic0gmM7L8lJJk7Xg\nWw/HjGBdeum5Q76jyk2LuuQBeNNNzOSq675LqS6IChf3wfJvjDAOUTvweQ5I\no9hZ7k2/r5PO356pMLTZGc8gW1Bu6SVCdtLKqxLrNP6ifcrJQYKW7N4ugTr/\nUaLWX1JGowDSVgOLXAsSZkPb3SxDRtHGKueThNQslUWuPq8NUhsK67y727GS\nAoGo6VzEx5G/zQySe++mrtG2YmGkOCFUzCzyyiSBu9h6W1qJByLSI3iwu2jJ\n4o33lc0beBhrBfDRM+XJ/Sl6Rui5KKGIcX8iKy6nByC+md9VTeWaotvr2v91\n3GhYUtR/Zgtb/SXnHvjiq6CE1rorOjxePEDObUv5Dc9XWBbOWqoYTW7vT4bk\nRtnmB+dJomJUt/36y4v2XY0K8GvF0cMtk4D5GJM/GK3RYKXSuoS7AS9+Z4Np\nwgq3FMkmAtBABgsXsGRMDoBG7afmPKGDoKidQ5QeBMIvNasvrkPE9JAnnukg\nPnB5EQT8ODr7MtMM+hFzOH9AV1v/yE9alSekAdZO0Wc34mHgGrEHzmgOPREm\neeqioQOpC3nlgppQFEfoKU4ZHsWW5cBRHxEf9mLLZ0G3P9i6zkx9HpNLK9JR\nsKldc8dcLm5gF/2w3Gd3NnGy0Cg5e6wlIOXn0DfyFCEuHgQwkA+RsEs8SFr9\nuJcX\r\n=7p8c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"26db63cbd5adf54b07a5b67c0e0fbff8e61c79aa","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.6","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.6_1561486265598_0.19985653162215167","host":"s3://npm-registry-packages"}},"2.6.7-alpha.0":{"name":"apollo-server-micro","version":"2.6.7-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.7-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9097ae8ef1fccaf04a4fcd49209bf88366c452e2","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.7-alpha.0.tgz","fileCount":26,"integrity":"sha512-HozyZqzpljgTLYK9jbu+gPBB/hqpJknnQ3UcY57TcRnH3MEAh44WSYx7MjfRXHu2Coddv0ZtoCnkHM/CrQgRxA==","signatures":[{"sig":"MEUCIQCRcdiNqVaoQO+nA0AakGGoPq8FQXHN0nGn4XrODHO4UwIgceAKaWlj3GyHYdq4Q+KKCHQAP1OqvEkkUdCPVjjz6Bg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEptzCRA9TVsSAnZWagAAjGkQAJKXZzLfJ1H8iV8xruka\nWQIrUHv9b8teZBVUGYKf/5Q10phuN6i0arYZ1gJ4RQv+SN3oU1GgtJ5fZJfP\nUyy4FZxZtS5xmsyP4qFgvWX22R9wumSc3p9KSJVpDR7dSjfFjotzWAzhV7Tm\nL+cRGlZ7CDo95PmrxF11VzMOYBKszg231n17ZMn89JAUYu7nFyXgbwkTd5KI\nTVG38cEpOFeHdSZ0VbcB1JB8s0jYWthxJiIY3Hxt71T1rjSqM2mh0C5Lf8b9\nYPNVdZKKlE8ixjRWoys5j0jKFo7JzzwgpJE33xMOfi0JJ3uT/ZMo6wvhE5J5\nxH4CzZ9VWJ9MXcm28bWHpONUbU5icFmGF2scS9RmJkVFkEayPIBikSSUoKPf\nDhPUpKyMrKB7grUrrXl6/2TRFo8HsR+6QH1oJXkHrHwTYs9kyXDIothaxx0g\nB6RW3aV/LYf1R8IkMrF86ffdktOt5WFE1lmkMYUirksJyKIxymw9NuHfrQp1\nSiSdCMF6vsqC5c0f6p2gvx96aGywem1C0N1bcXEXf8P0WQCilv9lKcOkMJse\nrsgJf5Atu3r9MKOrxup9P2Xv8sxu9AalVnKOlspqTSp1xeTY3mIGTXAZwOK/\n9mo1L8DyzV+wekjHMoikLOaTUEvw+Vj99wgPcG8Vs5jBEZLB0MxduGu/U1s5\n7+aX\r\n=R7QB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ec185a874c2f07b3724db62a3ec8560cfe3850af","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v11.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.7-alpha.1","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.6.7-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.7-alpha.0_1561500530348_0.30469079779550157","host":"s3://npm-registry-packages"}},"2.6.7":{"name":"apollo-server-micro","version":"2.6.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.7","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"65429230b1684cb34496ef2f7151be148755dc09","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.7.tgz","fileCount":26,"integrity":"sha512-2aVlBsliMAVVG8b6di/IhT6KjI4CAf9OgUmTH3n6jJ/kUk8m0fNTzE6pjw8kdtgB1EHmjnRVkdHqsTbz/fpsig==","signatures":[{"sig":"MEYCIQC8sT2+yJJKyfEjgbjHh+sEoxL3uQS6rkC9lVK6aDJhywIhALiz9Xe9P9Zr34GKE2WAnIGZWE6HhitJkr8Xq672zno0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdE1xHCRA9TVsSAnZWagAAjEAP/jxt/h6cJfCsTouF1164\ns4mcHD9AYz9Lj497PwcYrrSfCcs7UdRNVx7ogCrK6Mp7kBDJtuHFju2ybnjC\nHZz3A98WGKIOWgbRvvMa6CSl5xbhjV5bBXAcCZAxltHRfx57HlISaS5z7vBA\nzl5BCSb7oWAiOgOSUiICK3JcuG5w5iBJic4SR/iSf09VeqBvj6Xj1BvIzKQn\nyNpMtLTytiDjRiKiYhWyjtGOgt7xcgptZ9r3FlGTIAh2wajK9bWK4K+37rdG\nqf+LznG41TVMSbX+pYQY0QpAgmF/C0CFU1MzRpB64+KQnqq4xLoz9/neNxl4\nv4lfayNNKPxoA2ANMFSH/Oq8GXLVcu3Ppx8d+3I3wHn84jr6G7U/PYhd9EPb\nzselM+gprcU2lT7IumYzgwAplXmLXVeNz0h4bqr0cZWHW0fM+iQWQMfIvxeG\n8r92JG29zRpd2VwpOsJBaA4q8jgV/mgNKM8L0LanE6GGxCPN0QapcqLw6Wao\nLmVTa4xGzH9W6nOniq+8cNdNBtY5fSKpIV6koXndaafu7jL83ey2jNy2/NP0\npKdAChroAWnCNKjGWNiGvUHax7BtaApqBwYRKdW4pZd2IBwaHbjUqqospPD9\nc73+GRIJRsYnh9C836lw/1iO9lEIwPIez2YwehAy6zmcbHQgUwEE1fIj5QKV\nAcIs\r\n=oJfS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"183de5f112324def375a45c239955e1bf1608fae","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.7","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.7_1561549894778_0.42123880307967565","host":"s3://npm-registry-packages"}},"2.7.0-alpha.0":{"name":"apollo-server-micro","version":"2.7.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a8ffa864c5dc777d4fe3478481ff668b9ec7b8dd","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-3iS9WnKtpfq0kbKM3K3MITNrXB7vJBSbAS4A0BQRTUNnHnJpSpXCaERcdUx6aCtgVeG+syvC7BRRbH6TTx45ug==","signatures":[{"sig":"MEUCIQC27VdaFuLbB3vODQa8TqmnhKbCONt283ln3jblBLS7CQIgczUv2z8QscqRRwRaZoqXnTVBLaCJRvSimb0DDksGEbo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFSC+CRA9TVsSAnZWagAAx3YP/1B+Eu5dftjn0897UzoP\nvdrEBtNxl2F4/+MlzwKUcuQ7q0XplIjnaraclhNnUEIXmPiZ+EdSJZVxeA3b\nlClrw2EICN0asn8c8lxXTEgDKW8hrl89ORGB/hJimE3GOo7BHhkotVdWQalr\nGD4Kh+GZyN+yC04RL5R0/353FU0Nec/2ShYiwy/bKZ6SMiyA7Ogdl5OtXkiR\nu2UZ0eTY+5WCktUSwNMMoDuIgeff6aUYbWIuYRdtJIBnQYjREu0TyaZZjEQq\nARZfFZpusMUYZiRnMMvFC75V6iylhGblz+DukUbTfNzCtXmoElC1uhvdOZGw\n/3dDJa4Bfwq6f5/UwaCs/z0kFgrvmsGdxY0vq0mxIFvwu7/jfBzp7UpJ3N0k\nUCRmnVINjzwFddb67zzNvb/dlamkUr5Up4iJpxK/SGavivx73+iI5iHDOweK\nAQnCa6iCZHNHvs6Cvce/uQug37ITBZJAbaOJD02uI/LRN3AC0S6aoB28Sljr\nwNzQhYHmwypgQWpNwf0KYBSnJijmoRq3ZDVf56NY0fcw5Fx7JkWPtTiR/d0O\n3sUFvZtoGAF4f1rzafMmqQYksF81bYpiPpet1umnbQtXzatWOdSHxevCEdNE\nV8TTHqgHXQOomMsfVf3YgcPQgmtU4DEelMtbt6advazhRX+/d585uy4X7foW\nxGzs\r\n=SqVF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"5ec74e31d5a6ca6ab4c3e1df6fa0f178f8610293","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.0","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.0_1561665725737_0.151337248450381","host":"s3://npm-registry-packages"}},"2.7.0-alpha.1":{"name":"apollo-server-micro","version":"2.7.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"05d01ca0a04806ca56d430e286fbcf1bbcea654f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-7Mk9wmsRlSZ5nBaGDO2viV0kQ8pUCHSCwrRgCuB0RC1RSOzgWUJHY8OdCNGtqd0YaV7yG6BXfIyMEcw8QjWDHA==","signatures":[{"sig":"MEUCIAHWlDHIf4vE8OjdctO4Xed+mvJ0uIKD3nl757XHGhbqAiEAxFGl177l21DeC5qbjfgTNZUmkZfsa0gPFKNy6DQq6kA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFS6WCRA9TVsSAnZWagAA9UUP/2hSvpPF9eOA4S6mB9A/\nSdzFn+8zSGFBmaTXGWq3dpB0RIDbyZMUPwlPE+xpeiY6a1xaHMXPTDIKFx8w\njP5rnG4QeuP+1p+uiRKkEOD6jba/LGc3hgxe6phG7bGXfXDU/dlDmtdtn9Rm\npeiPxQZMa21jmSEUzYCz15y40mNSTR+XW6zHQMnFqj/thO760ClK+ljvqB5M\n9UksLL1/YOekRgL0fVPjzXXkBwTvYg4JEPMASqX1UuvjOe1f6cvIajSs/9qM\nRMkyZKYsfmqHfA0/bf+Zny1uQejtZsXDh10riKeayLH3eRB2LlcNlHMd+Nhk\nCWgxMtCVn5SVZWkaAGyTuW2VhzotjI80Mrc8QPJq+gXSUwRCUtzontGAa9Qu\nlK7DGnlG+dPrOV+PvOmjDr3B7LX8ZCKirFqmXipZqm1g/0WAL9aokK9PTsIg\nwaWMUdWRcVRpwCcMtRH9DM9woJI5AoPU734g0+PgrAmE6MLSBlv/3sKo/mUI\nN19JpoEO0s6RRGlrtaq3mfqMJjENcoGFd1+w5tpzP0scmIWOqTXYfFQAHDmi\nefjX3LvK+7r0wzULc/uj/J/bNw9cDnlqcxnmWhr659KTbgEgQ+rw/ZY3m4zo\n3rTmQGg1EBF1fHNawKjpRVdmVB7UhwYlnuZEBOd+n44S/nEZzxxhbPJo55ii\nngvh\r\n=h3bM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"c1749d75c3737accdfcb69f58bc0f1a51f59e02e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.1","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.1_1561669269848_0.2282944198246244","host":"s3://npm-registry-packages"}},"2.7.0-alpha.2":{"name":"apollo-server-micro","version":"2.7.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"58b21a73a65a17cbadce3ca8fd77c6591230badb","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-HQcTdRsRqsG4GUf24Rbj4nzVwEvY61X8ByDlSls+lO2G60+PFert5CE0sCd3wfH0J2e5yDdt0hEyBbcEhbuADw==","signatures":[{"sig":"MEUCIQDtC9ighLUM9QEpr/b2mNqIlTtb2YQfcvTYqAJKLGy2cQIgNci2C7C5sfyHagoKmGFrfL7lyLnQuScjDQkFLWUT5Xo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGTMFCRA9TVsSAnZWagAALL0P/0+dUwd5FZ8mTUyCqUl3\naBPhcpmdPtc4MFukLTDE5r5S1VP5hBX3vt7DPFHwhMTc1UR1bdK6N4IkhCAf\nB53c4b+Dxed6DwiB6SwlIYvspe/NZ9aPKCiA8BeTtdOWDiWfXdi4K0XIC3s+\nWZJ1/CPO5lMEM4JdIR1DxXW0YQZcllZy0X6kMIQayjrtiqQPg6OfFXmn/wuI\nG9DrKTRzluPuepW6QY6LsgQ94FlUYrsb8MvY4Br36vfFomMpNjGuZ8PPysYR\nlRObnlhshwrOSJOe33ROxlg0fUnmNJfez7C16G0v2snjTVBNQVHNoD8TPGzQ\nbMySyiY+MeHMZBJyRcZHE4gkXxKihOZoYE7uQrq8SyNv/BT3EXlZeMyIO7Ky\nm4Wjg5IUkXhwBJE3xw5gUaOK3nQJ46O6uLVoLRodqrcXCSd3xh6CzRNC+vH6\nSqlyhV6qAH4mYD+allcAPN0t9ya1ldsyERlBuRkCSrEzj8p0iJLFOpFLf4Gc\nJk9RaN8nAK5Y1aTh6Lhs06iAfM86RsiElpH4DPnlBPjKVDBdfH3RWj8XGKlS\nrU2Sn7AtvBfZ0w+mQ7pz4qCV8pE+SaCMJ5ZrTPaAjEj1PDux9pxrTjZObEfZ\nSeVpl6VID6qch5gUqhpfoIGsofQamrfBSz+meguzaoSLYzLVZAMWWIRhobCR\nnLjG\r\n=otIM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"c42d817836c10e3b59cc1afd0163eec59d7bec90","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.2","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.2_1561932548667_0.08928101802342892","host":"s3://npm-registry-packages"}},"2.7.0-alpha.3":{"name":"apollo-server-micro","version":"2.7.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f207dceca54536c572202b1d74680db33cb8a635","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-Gy4gnWws8fHroZZMTRQ3BMArUghPsZtgohAhV0y7xpbLKgdtvuIzKK5cR6Hk9aq16hrT850YuT/dXawENWjQ2w==","signatures":[{"sig":"MEUCIQCuaGvRPPhw02mnG35lt/OvDOlP/IggrVZgj1aveI2W8gIgc/IySJSKnotaaeGE/Q3a1BBM0orI+vaEVKV87uEaRys=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGmZgCRA9TVsSAnZWagAAtqwP/0shXWLTlFLYkfSPQOp5\nDhfWCBNLDroF9blsiOVJtId7NetD8bDMRIHVO/dLsJd4QfjG1MntHWFdAPxl\nezmouioZdQIh1icgDzikaAmVtaaRoy9jBgo0aQE/hzsH8VnFQtxWLahBLQL5\nYCDJWJN9G+cWy6BvwimfVcx7mXl47rjD6QjVLsPlrDGl+IMm64gZ52lyHm9c\n6mdarMqF7ZU5NgxgwBQ9vp1BeIy2+1IiKVdJsuJWhjatD/pxHca+IIZNrSP9\nkuyvnYJyRIHCbj3U/J981oeuDN0Jpl+8Hdgx0QYYL2vU23LHgOEFTPUS200W\ne/h4n+oJq7RuKh8aakJpaR0ZhPiXqHM3otPhQLWSP8XWIfmCKySkUnCJUvH8\ns4nNPY0JTfjd7BuyTx+9PiSuuLNwxXII7xZ5z8sV16Dd49dxOgA1jS39rq/8\nJEcmJpigDmbatEbFnrWBwq2QZSOfiIHRRrLFM+weegpGzujaF4QaFylQDjQW\nfN4qCS5ueNHRMlJ8Z3TtDpCtZCoUDvRgHsOfPiV7HapqmVWgDs36qHq1BkTk\nVR+wxkFkeHRIbmcdKzGQ1NmcFNeoqQ1p16c7Cvj2F/q4i8/P3EGHdOPw9qhB\ny5+t5xfDfd83ccovaXF8EqJh0WWRjXsfquMxuvhIMCEHj6eDt8Jqjv5oCGsH\nKOSB\r\n=VTsg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5f2063d6b315980d1ecf6573dfa29ad56b05208d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.3","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.3_1562011230181_0.6490888196571833","host":"s3://npm-registry-packages"}},"2.7.0-alpha.4":{"name":"apollo-server-micro","version":"2.7.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c29759fdd766d0a8d3b03983d620bc56fd827d22","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.4.tgz","fileCount":26,"integrity":"sha512-1c4W80vMnVdsB4frXITQAERKwaB9Ig+rtAGHUKK7s0k5k/xbMU3GG6VdA2bQLjmZcKBTYjzOuI+CZM81VYeK6Q==","signatures":[{"sig":"MEUCIQDoFGNODrX07yB76prjABiUY2B4HfOngM5alFdFNiJ1awIgJHgFrPHofckUiy90ItfOe9QoyAgyRz7fIiQDeItuiu8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHS6oCRA9TVsSAnZWagAA0XgP/24Y8OWncSgn89eBiMHz\nID9+ATgZCKMZltgfqCwvD/ukIobYeS3Ko0JHubCdr5TmptEq5VNLL+e0vttl\nX9uAEaZYOoJwQuSD5Kr1LSUmyRza/XdeiFRVkotrAMPEFcxVvLOrSF+GfFrp\nfgeCEH6Bfckesrmq/iRfABVmf4qWzAGO5AbRbtfNtsuguuOAidfYixJdlxRD\n9bGavCIawue3S62QnL4+MPyE6bXLApVG5qBnoj0oewJJMccm4mEzGIB0fGd3\neMAlImr48+rl1zur9iWoXbLZOv5LH62qAbzZKXBD3B+wCO504oYPK3q5Z1ay\n2OaiD8hcoF4Nvw1raKjQSkm6QC32mkOqKhmMM67THlcGptQXI2ZRcM/VNKEm\nB4ct4NczhfWi5nHB2jKSSacUX/BBvowox8WV8yvS9VEiV7nzNR7hFVlxjIbC\nJBTvXLfGIv2PjZhMxwfrx1f+pfFUNZmuZsQqdm4eOU69u+ubO2IAgnLjPUR4\n62ulrZn/zWtrDdtzcV7V3Q815EiJemb7s4FPcEkPiYP7snPS3AjJ04Ix6l8u\nXousbVUf0yfr7joJNcFScSGX8iucxN/sS88kVmbt/dY4D+QjyM7biTfbUFQJ\nfYegFOlnbrQsmKW59FitXqAb4gXcCbebh3+goSjY8eEKP33cWh3Z3ppuR/g7\nhpVN\r\n=10vi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"fe353084b7cb1a97baceb83ffd1b31b5598b5b60","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v11.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.4","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.4_1562193574933_0.5358880822816907","host":"s3://npm-registry-packages"}},"2.7.0-alpha.5":{"name":"apollo-server-micro","version":"2.7.0-alpha.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e7ecbff213c61b90d42d455b48acec35f62690c1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.5.tgz","fileCount":26,"integrity":"sha512-zY/Nf/0MbJrps+AD/g9cPQ8b3ibz8dAn5OZO9JBeI+2/iBLqdjt5L00VchWF+cbKuLFRQmZb6gJTi0ME1l8mAw==","signatures":[{"sig":"MEUCIQDISXQ0wK6ELeqXna3MDwgnUwTZARHg9Bi9boEGN8cyTAIgavoJPi+kV2qdkpJB/NmzEVhQKUFCDpJyf+qXhquInSA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHkJCCRA9TVsSAnZWagAAHrcP/0hlhyyYBtgFupItT45O\nQEAZvVP21blSEK8Go6u/uv66ivYejLMr3FvmXKBdRa26f+RNnzm3CcxgxqJZ\nkaoSYuzEZlju45oLfMJdB0UdptuIeaTK0i+Qr0ycuCbviZh6ub4cfAIys1nl\nnuOupIwO06GvJVlwPGyQqlEulw7TajMvc3BTEssLsbuWVoNAHj6WR6vdqJ+2\n07eU8inrNkSiaCoZt/DGPR/FaC+6IjnKgf0Sns+uXAwI9sAeMSs7SS4+pwS1\nG4s65mXpbVxRo3z0OAm/Qo5IKPB8cAHZk9YpooRLoP1I+mw15vQVbhDBghqb\nndhdwz+ZFkeBlHZdjVjh8tGd2yYedgZGSHY+/l088dYFCjRFZ0q7cn6UqI+X\nnE/O5R7iEI+/0DfgoBj/uKj0z9YigOiQKZOKSNcK5DJ4qPTzUCqPn5HYpYEH\nLg4Ty10UlE9EW0FvfQ5oLO7xlg38vm77obtcRB/WS3+O2+A0O2pQSW7yL5HH\n/mb7ITKX0a9U5ysyt1qxDp3+B7qrQE8dMAKSuHv+VFF7u521MjI0RgHk4Vzw\nyL6Xe3b8BZmrg8hDfNFdVNYmSYdpNwc3wmdJUGXkcr6d42Ybfp4HMsdZBSA4\nBHXFGYwpiRnE+IW3QLI5hhyfSUKctj57ICswpaf9gAgk1z1sGQOKSgfyYe+D\n5Mul\r\n=HaV6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"93a846f171783ee4099147f08c05fdf28a5f50e0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.5","@apollographql/graphql-playground-html":"1.6.23"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.5_1562264130091_0.30062030906557324","host":"s3://npm-registry-packages"}},"2.7.0-alpha.6":{"name":"apollo-server-micro","version":"2.7.0-alpha.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.6","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"dcfda795548eca9e4788c7853e5be31c40c696a0","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.6.tgz","fileCount":26,"integrity":"sha512-+ZN2kKSE6xkNgpekFy7LAV23E35iU/v3/otjHyYN2V/bgzb6RzfnJuFC72yZ5+3fvaPZk7nxsUx2bxzNo6Igsw==","signatures":[{"sig":"MEUCIAKQruIeixPvEuDF6T54JhcQBSxdXP43jvaV8NeKuJdvAiEAr+XReaQ/E55UvHXcYbxVkDxxULVszsjf/B6K3zMROBU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHk4JCRA9TVsSAnZWagAAP+0P/00DrT1rLWNCWDTP/1Zn\nRGOEHpgpt1Qj0shyd/WhOgMqCzUk6u5kAuz+Pnk2wZsGCIa49hNDSWuwi/yS\nf3oQljgq+BnpqNi3a40wcotFqIs5ENap4FuOvHfDvZ/6G8nwYgSXEAYq8G2x\not/Knofg59J6X27db5LueTv0Cm/Ol/Dl6Oo4LSqwSLkrQ0xsREeF7Zm2C/2U\nvZpMtaaYb0zq6EsiUIwf9U1hqkCLHEdY9paorky6gT3LapNBqgOKYNKc6M6O\nxEZAKzZOr0q0MVX1YpWby4m5FcU6Qa2L1sVNauMkJB15C4tBgbjjbpboL0Ab\nnpvYtXQYh9Kz5z75pFjjzNPwG5QoacT3f0vdv0eJsj6x3+BqCLXvXUJn/JwY\ntMDUoAFxHZ3DRWe85tIH+tnwGzAmHkuVrzdaGixwKDLTsESD8Bi3UjUDwq04\nRbtvvmwrz1bYz5lZNo007duY/j5EMeUcpr2ZyigEFEb4Kd1/qNCeDCPq8/UT\nqRJV0jdn4/0V6SV+ljOyIhYjoUXs3yThWLOV7BRsYcLnajOOvL2KCPHMe2qD\n8IpfHd8bivebZGzic43RYB5NnW6t7SpHzhfyMbPn1bPGdGw9TRP9MmgTqDvM\nBKjApQBrQky97BbykSXghZpgTafxjQQZxDcWWfymLv4pkDZq4gxMxDvdLNme\n+aXD\r\n=uj2h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3d4c8311f677bee4e61d002d2b144afa965cf92c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v8.16.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.16.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.5","@apollographql/graphql-playground-html":"1.6.23"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.6_1562267144701_0.6851431877926222","host":"s3://npm-registry-packages"}},"2.7.0-alpha.7":{"name":"apollo-server-micro","version":"2.7.0-alpha.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.7","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0e763b3bcddeeead5846f2da662dbd902a9e4f30","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.7.tgz","fileCount":26,"integrity":"sha512-q8I3K9OVmRb5Xr5LQzuJ84dwh1L6fgGOCzZAZR1IQwjR+OSfKzln+7EWiGak4HSFai9Fbtk4/s1h1Gt5JRTzSQ==","signatures":[{"sig":"MEUCIAeki+GKoA/YvM9z9myUmPRmZV7RBrr7OWg37qMuTHbEAiEAlf5SA2Fw4btgG3eBd8Exp0MFZXB9Azl4gHlPXuzdc1g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH1IoCRA9TVsSAnZWagAAB7QP/2S8QrAO33fAAO8Lpf/1\nQX0YEScwchxS6d5QdStZ+Qg3LZYt3jEqhNdA2bYjXPrKzWjFAsQx3+/v67pb\nmKd08Si6K+e8H/5wriwuzBsUiHA7zz1nloeyHsNZMoYIm3E9JIIXBCgNGUW4\n4Houd/R56PL1zC+x2O27wXl7sYwZrSSDGyjnUypSMFGjssfsCjeDkxL68jwB\nQOhX/r+b4JdV4/CJyTPDqgSfEIC448pVSLqn4NqFxpagLMv5JKyLSUUlwik6\ntMv+n/JecQ0du5ZKGAEB98VoXo5k92S+qxHP3sFf4xSjf9xurj2tjADO2tE/\nfZ3RMKz4jvhhEt6KX+v0rhDZiEg1FosLLIAOmmOzi2hxQe89/OXXObxRk8NB\nmEoDIGLzcah+YQNL5A/B7e1IeKPWbIpR8gnRdNmbYDjnx9HR8bQjrK/Pi1j6\nI/sjJzPC7w77cX7ijnWIMCk4c4l0rE9b+zeE1ZtF8oJhbuHJ65IzMeYJ5CG4\n3i2wXjAF4AOPxd3UNgliSgABKxsiyMO+VCrrTnRoVVzD4uDE+Zd2YyCCAcAc\nuQVecVFRhybfF0/5ur7WfgfjbK0zsmLpftRNM4FlvWOmbuHuFBRDm8o49zDb\ndZdjJU+VWhWPjA8469R9Yyvx1kgRSNW46SFf2kOXV68Kv2uYP2JFoBlMuD8Y\n5TtI\r\n=xDaW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"85eb8ee0c2880aa9e7526a9567b82850dcfa9f16","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.6","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.7_1562333736139_0.05396310546636762","host":"s3://npm-registry-packages"}},"2.7.0-alpha.8":{"name":"apollo-server-micro","version":"2.7.0-alpha.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.8","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b9ac4746794e87fd1a32a4d9bb1f941607e0815e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.8.tgz","fileCount":26,"integrity":"sha512-X8W90jPWDWrpIbkx38JymNz/hU9msG7BATKVf6kxSIud8GIFzhAilHsZ8GZE+ouAm2H7VLV9Zh0A076jVTOk/g==","signatures":[{"sig":"MEUCIHsq2yn/PyXYvExMkqwgxgiXZuYuO3t/cbf8+RbdCG9xAiEAm9p9jmEcM/dSOIW8KV3PI5G3rJshR9x/mlxxATv7/oM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH1U0CRA9TVsSAnZWagAA6yYQAIfN7dl689hcIcSfvU0Z\nUDA1xsZKy2xesuokf3bEbhggMf32cDNiP/v5b9SY9LdWhTn1O7ir+jhZqwXe\nXA4uGbSOAQdYqeBdGLZo1pjASQGY/fCgjPLseFNUZxf+Zg5N8AR5tTZ+XF9f\njpf5UObUaHUrxM5RRn7M3zE5rSZLpm0UTdVFs+Jz4lI2x0ua7Q9/87WPDXvU\nZvmopt6cC628Ff7BcDoImplChC3xsj4/2MPoogjEKs4Rj8+0/zgQLkatrl34\nX1tp0rkdhyi0DPTWHrmDP2PrTHnAKCTVLTeB4x0Wotqqskbj1ElzbGBsVdLo\nhkRcNnFRyP1RstitEIlZCqoINDX1xnJBhwG3CeqmYCi8y2z0e+5yiZCqMwCk\nYWYDV05I9+FbshOAbgufYG1MlExC5d3lnebo9bOuqZBIecglX93X/cpFm5cI\nbkW0j0lC2KLojiOh9SM4/t6dFQ3DE59TKnZ1Oywtg9/jZ5HaQDXjvMPHHm/A\nf4zRVFHMVigJSGYYQlEJoL94ZdhfINReuH2EWhihKQ2xEBKTBlf1Z4t41tLq\nDNNpjYIQkzSPJNTjzWDvAxpcGwW2iTiHHelLBuMWrzf3XNzhBCcTTiWBtub4\nu1vq/XaYEFAbxMbtY009MK83U0b+GuHUjFx6orUqfhtEHtwlObWUmrVGHr1Q\nucLA\r\n=j4yQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"---\ntitle: Micro\ndescription: Setting up Apollo Server with Micro\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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"02feb8a5fed73c529a119e2d24a74ade1e812e69","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.8","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.8"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.8_1562334515626_0.9869574185265759","host":"s3://npm-registry-packages"}},"2.6.8":{"name":"apollo-server-micro","version":"2.6.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.8","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"da66b5a325906d36ed97ec9f6ce7d1abf3aed547","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.8.tgz","fileCount":26,"integrity":"sha512-KWMCnHijDbRFGTDQoXY2sRRWZwBH+YXIJisaOgLit2sY/I05t4VHAI0nlUCQNK3IeXYA9CcN7u8I6skd1K51IA==","signatures":[{"sig":"MEQCIEoD9Cje3bEZrULTA6k8PEQpCCg7+ROUBrUcbJRsbw+zAiA/0K8dwoSj9ZdzgnnKFXSAV2P4ZkxgGk8aefOaQBqPcQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJRRGCRA9TVsSAnZWagAAJAUP/0yaxRsdOT7sWbQr57LS\nEmB1Kkr69+B7j2ksMnuMjsEisD6J6eZRIrPgQ1pZ9OAlf/BjTFBwvbHmNCS6\n7vM/RjHFzxxaNUoQ4pSe/BhyyxIA8hk2qVkFDg9MdBCe3I9bBjh5BsxT3xbR\nJuNX+7lmsUPuaw8LnqEABl3k01kLDpz6nH1FxK+h+SGfXVtTnm/mMQ7NTCFP\nTyF9ukIvHuhigq/xrAL8V8mDbyMsJEb/bOXNuMf6+lJ0rOpHF+beBfiQ94mf\n3ZWbTdTkWLjvKTc1yI9mvfGWU8kMFum+Ap32XUjkL1EE3PJ01cPh0XjuEQc7\n+QALVfTRZrKDjIzy6vI4iLKklJXyT0FMKs7Et06wCG4DbcK/F53G7D3We7QD\nro9Kd/U5495kFOKuOSoCIulQipBeJ3bPWOKMYYeonbzHrnRK3n5+GrZANvdu\ntaZQ3VBNJQ4Q8HpJ1/CqINYf8i3Ju5TBr2Rtr0Y/budbbUGrH3MTnqTzY4Tq\n1Sbnl8cESUGlmj/qXhitBFnxM/bLjlTJo2WF9YVe3vqhGnbO9hYIePjou5no\nG1srVb9A6/Ypy1XwJtuhNPuGtzrRXUWOA7+sPDkTVZkgkrTU4/j09zXv4xgF\nYesBZorqaotb6MZ3tJs0bmDRWmQ9RAZB6ApXbBj+v+yKaYyCwOFZOUHnWpp9\ncoOQ\r\n=g9Gp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a06594117dbbf1e8abdb7b366b69a94ab808b065","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.14.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.14.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.8","@apollographql/graphql-playground-html":"1.6.20"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.8"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.8_1562711109401_0.4183565176104218","host":"s3://npm-registry-packages"}},"2.6.9":{"name":"apollo-server-micro","version":"2.6.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.6.9","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c23c9527bb33effa61d4919ed9580e3901ec438a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.6.9.tgz","fileCount":26,"integrity":"sha512-m8/flx1y7LiJml65fxCSdK2k5R3aSx+UUT32iKbmi6AgmwcKy25qkYp9s5mJYEDsY03zDPuMdFKoJH0PJLbJKQ==","signatures":[{"sig":"MEQCIGpuOoyvBdA6gO/ijbGsBBxkGngeWWfhtDrxEUv+0TDNAiBu7m485MCNMdB8ns/lNkqY9EjPYKdxJ6yh8PztBilfDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJ4ASCRA9TVsSAnZWagAAIi8QAJ7mh/ytu6erCGC4wvY7\nM+MkDvqZXMd/3ZObJqQG8McAwJxbdxnbU4AAFWSDehjGxwO1vY4xjQCxIb1T\nuy95TSiGkjr6bMa9OsIsnNJMDoCAjzIDJuM5RiBjRFub3jGFKRacn1V/Cqyt\nAnMFJPJvGL7JgH4WrdRZ9sG1N3w9EPnulf7/6PebSgnw5nsX/CMXwnxr0dOA\nWDp+U0qI5vizDp92zsJQamllfHqRzGqSUfAq3MyXW9ToGE0Imq9LRdqTT5C/\nRNOvrEqmu4QEeg1z861vs7wcr7Yj5OG5rsZW369CqittBmVdJeUZHsGlhV87\n6ZWNI0dBu4gTvALr/Ncw5XckGMxrGndOTuhWUVb2RsCvFACOXLqXv4nRc+9i\nlUau20iBDrLH41TCo5aGk4IBlDRg2f7vrqJkWTjlMpz4uzB01ZLgJqcWKzez\n+k3jpMWnQvACAWEVKh9fT6EYj4PPW33x63O0sWCq3U9GguaXHuy0gUheRNEN\nu1PEwnJ/8QNK1ErGMimhZMgVwy681nglnMnZDDZB08vHyRgK7eBBS2aHBEc/\nGMivXuCBuP6NWp3nFxUiwWV8lB6hbCN2a5x93yjz6WN0nENpdi30BjTs2y5N\nfzWhR+JezMeDFNs7EMh0Z8gxiUBoH8LuZn6d8OaxZS/LN3jtCuCHra5WFyow\nykKN\r\n=BIG9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"57210129cda034b095d3f227298021feddda03f7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.16.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.6.9","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.6.9"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.6.9_1562869778049_0.45636337621625334","host":"s3://npm-registry-packages"}},"2.7.0-alpha.9":{"name":"apollo-server-micro","version":"2.7.0-alpha.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.9","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"06f5cbce72f988bafa1e9aaef2651276734cf7cb","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.9.tgz","fileCount":26,"integrity":"sha512-D5dzuKnmflF7jsQ7IPhDhTU3LZOGj4bEteeNHzmXN6hKHc5Ge/Rr0nplVQqWEGnraAagN04n02LOuUBR62yJkA==","signatures":[{"sig":"MEUCIC47pkt2M3OSr3bcW2bBq5+4Lfkw0Zu30bfumNNYOWOiAiEA1vPg5Z86AZpZTf5rI4FEtlemxVCicd87rdODIF3oEqI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKkP0CRA9TVsSAnZWagAAZSUP/ArQ56V2/DpKjp1t4D6A\nvn8+ndqlxNBpAXT4dzcH5BZPOQLf2E/catyo/uEH4MwLHNBZ7KKjfv7NHiHN\ntNCiqQT4PAL5PCzYUHhrWnzR2s1LJHTvHynGOJNfO+X9nL5dugm1V0g1BDLA\nbQFIv2x/XQk0rg3u/Tvfs03bJXmlPJz5476/qYQvQGdfQXxYTxGgjPyGuUpE\nVt3p3InVhcf3HFfUUvNwpo3XtmD1TWPZSZmw7OfOdAtBjz/MN+0W3d+00/uO\n8NptOFvh4w2ke3IMj3w9u8ppEUGGyLOidjc6f6pbuvywOSZ8/gz2E0h0tzjK\n71Bev9HUY1PIfnq1LqbZcG/kfcz/D7QiUbMiR5cS3RoOcT37u+wtDH0Bkexs\n9/FpL6H23XQnxKAaCpt8xZ6SgGl8e6z5+H8kjk6vY3/tuN2ybAyGxfZUdZuQ\n8xhwujUPiZJ0U85rqhGtiqyz977shAjNzxBHwmtCSnzd4O6hD2sQ+s9xVt9k\nhlFSCDal9sH5+33ThprDPXeNYQAEcOHbaThrUseI3x4vecIxJn9WvQhYAOVS\n9oNVW0fR9hvXd+3meBLO0TNmNRRj+GvbyBLzg+xYK4GXP1E5grbCTfV/EERJ\nMgU0Gv7KpTPOzEwzxbYkHSk+cevS6ak4+y3gjicbOkX7wkUcKXo7h9B8jxJo\nsWpb\r\n=ya75\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"0b502808ff0151acc5ea0115f60cd080421500e4","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.9","apollo-server-types":"0.1.1-alpha.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.9"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.9_1563050995818_0.864328180179718","host":"s3://npm-registry-packages"}},"2.7.0-alpha.12":{"name":"apollo-server-micro","version":"2.7.0-alpha.12","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.12","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"968b8518fe96444bf9a1bfb62e73b0f03a9819e2","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.12.tgz","fileCount":26,"integrity":"sha512-E4t0naQ5slkF0HqQe3j1nIAExqjaeVk3dCFaohXbI3lyjCkBgM/cyVWsI+xqcAW3l9YULFWU9wZMPe5PJbEAiQ==","signatures":[{"sig":"MEUCIHpfPJFQPCeDTp5dDa4JKEjGGNRhtJqF8U5/Vd7Rl4qoAiEAx6IZlXi7eal0J7DKhgsg15sQe02Wnuhmn//ptGbXOdg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLC5uCRA9TVsSAnZWagAAq8sQAIQFZGFPT6MMiOAoEO6o\nuuMCuEj95c+S69IEjA2a4EJl1iYYoEqQCjYlHUyJtnEGPEUkvDJHWoi8HauU\nUaB6uhNl+z+Xe2Bn7Q35HVP8yIwfQd5IWFz1dKnCb0/2eVbfhsQIw1V7ZVre\nwNDFhaeRs5WUe/Ld6OojqYiCBEegwBxT5t/IyTMYxpYXAuujkj7jz3vdQ4Z1\nyLDoDttithh15aiwYoZHck/1UpRRehlVccbhBhtXargsIAx3JL+a+6M8mgVI\nzklpusd3BKYHL0nizzqtpoPV/tb0mqb1MvJKfvUlKwOthYlFnkVNY42wOIlp\n/osoDgnvAeZLulbsQ89PZ1S99bg0GCM3MPYYiIcrCa22Ueaq3FzxUL6zZ99l\n2k4Ed9Rgrxr0nsgdVpKVumjY3+QOCp+fc6fw+6EtX6nY0MwmavZLhHuMFLWg\nTBTFDCT4HHg2mwPwqO+jhRayFLS19sW4XvgXedVeY3qSS/RiIPGW0AUry64d\nB6hFZ6yHx1RdZIh8QswGCAQKYOAeden11RiLxJ7vYtDCrIkFyBgC9LLxWC0s\naeylaRjrmr3EAYX8GFx0cr8iRo+KLYnk8P11+ukL3ycs1c3THbK6Pjz6O6KX\ntU5/qQ2x2ZwUecH/9/6oJph8QFaI2pTj1fICowMi9RFO3x8baZsB5vIGWj9p\npzPa\r\n=ufOQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"6c69ecc7d1604115c99d0b28aed6f824f50e93db","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.9.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.9.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.10","apollo-server-types":"0.1.1-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.12"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.12_1563176557795_0.899719788124167","host":"s3://npm-registry-packages"}},"2.7.0-alpha.13":{"name":"apollo-server-micro","version":"2.7.0-alpha.13","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.13","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"769a5fae2946bdc2c76bb8c299308c34040b4fdd","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.13.tgz","fileCount":26,"integrity":"sha512-BnEFtJvADHp2Pf72I8i+HD1Hr2L39Nwrhu9GpjopOceEQlULr+A+tceVTQ+HJp3ZaXQfVH7JC26yEdzqn2Ub1Q==","signatures":[{"sig":"MEYCIQCFl/YwoKCh4n4Wu4/4AP9EUg+O6NPZlklVXG3OAH3jSQIhAMk5/wdZo51tmJy7HwCYCR1Q5GaSK3rZpGLFPI94IyGJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLHTACRA9TVsSAnZWagAA1JMP/3dcvGFESGhe2PboKsst\n2m+wjDgGbwm9noOQgzYT9508EiYUongqCtO08s5j5XoaAQuFG57zxKFq6yHe\nWZDmMz48XgOV7bUCCrO8TLpV3kS7alaCNs2v+KsU6uzAy92EG9P/mCTxQrxb\ndGO43Mj+ZuYrj9n5zXNTxZXTubFKMcZgs1fpkVnzSp5BRXRoic3OqGC8Ifi7\nZEoq7Wtt6Af7fW1AnQR/p0ZcTfQLkpiYC9aTVmX434miGakt/r68t28Jg+iO\ng46mpq1PAFtUb8BQfyeYKWz2Kuk9FO26hx073yErEyxG51KBn4u2TnFgGN5J\n7F0orThkIHPYYKklggBYZ/orxqSbW1NhzNgGqLAzSQxuLPSHjp9lZpZUtaru\nqTEohi4dWtMwr4rYp+mO9wwM3Q//tIY1+yXzkOa99YFjks2Sp93tuE1ONMQu\n/bQlLhId3asdpGVqFgv/QJk+SuYWHec345pPlzrQ8Zwy4W8dirjhgMngTlmE\nvDIf4/61G0HeJv6j+7g7x3gQxYWU2QXz00OIQbUQ5wCKS29St20dEfyAPhx+\nEjRWLiSg8iUa900bNp8PTKarqCxi+NdO6z/v6C+32JRIFuZRW8UbZw4zm3gL\nawaHceljgZXcwMKrZbgJP23u5/i96jWEBTH+stuYCLaxgWND4uVWjGWigLcC\nh9Gs\r\n=E/pl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"b76ca731c7de2ebb4cd1cecff7e4d6c23f1f3b9f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v8.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"8.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.13","apollo-server-types":"0.1.1-alpha.13","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.13"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.13_1563194559158_0.0908162138667139","host":"s3://npm-registry-packages"}},"2.7.0-alpha.14":{"name":"apollo-server-micro","version":"2.7.0-alpha.14","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0-alpha.14","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d954facbcfcca34dd265549a81e4b2b2c35e3e55","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0-alpha.14.tgz","fileCount":26,"integrity":"sha512-nGFzWxDblP/zYPB9ki17GUN8KzMroUAOM/ohzAnEq2jz1vDvv7dy3I/7Y9G6oizcetwbNWA03fzS2DcvKl0VQg==","signatures":[{"sig":"MEYCIQCKm9b2aA1x6zNGKTeeCGoJLVdRGOrAaDgZPWQDePYXmAIhAI1iCVXTP6mlRXRf4GHE7uccCvHd5rhdw038PKIIW1RX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLYpACRA9TVsSAnZWagAABFcP/1QwuS4ZtA7jbjI39BR/\nFzRuzzwOD52Hb61tFe4pqA/zgLGTNTqTPnJHt+CUhqN/p6P376mKVUua8Ouw\nnvREko+TFs0dVtPfDT4nBQFHW7Pu6fQwr9kTScjnO+leyNYSPhPN37a/cg/y\n2n5P4U4+z3fCnsWITnWZvMYDpSSV81QI3ejGlLH2TCKTCIVDDgI7dY4flU4p\njU19kSBxTrUwS+JcaG2gyvhNeI7a944OCh1Nmf2Z1Khz1mz6uISdQX36miu9\n4ycmocdlNaZFGrQMWCLcJMTh4oQIolz/7IMb9HmIwOsbq6cvlYbkctSqiG2J\njXun3HjE0Gyoz7eblqfMYHQlfcDB1H8yCjC2YN+Ysy0CCN9rjmQqOBDlRtQ7\n3I7IdaEYXmJ73F8P6QTCnIOnaX356azhIrOonVYePeevyL47RrCNzT1EL+fy\nR1uoZQDIMeFMvNR9x6aC7CTj0gsCKZ0pzCsHn5U129vLWJIPuOqOB5qM9A2W\nqB551EBqCHR1h3iEHqJVk+KwPlBDxTRhA0+7y8DvJ/C5eIM2XK4y1fxl0yYS\n15CYF5uJaTNBGsUfBfHJQfRS78kkwJf9yAGqKFa6WIWC9GeyGFa9mrxmD9nJ\nK7hZDfSCkIlZJOe37KeREQjq9htNBPg8ghNMD7dbAW4GDQeXpPVWTH7aqft8\nmEN3\r\n=fF5O\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = cors(apolloServer.createHandler()); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"c2b9071e424e2b32fb68c122a30cb4df75de4dfa","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0-alpha.14","apollo-server-types":"0.1.1-alpha.13","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"2.7.0-alpha.14"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0-alpha.14_1563265599278_0.8143152299568277","host":"s3://npm-registry-packages"}},"2.7.0":{"name":"apollo-server-micro","version":"2.7.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ab72393c28ad199766b3c0b457ddabe66a475fa2","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.0.tgz","fileCount":26,"integrity":"sha512-SH0li//3dG7VPbckpMABdONHQIKUtG6mbvOyeIck8oKUpx1i0hO6mqM6vR6jHvGK/KoXFf7kFUlswvy0g7kHow==","signatures":[{"sig":"MEUCIHWV335Kpz+nmzY6hxdJNnYFkxJR0LWL8bAhRbRwAhKXAiEA1dohV7sNCqH4u3iktfGUnoj4PXeP9M/VW6iF2H4pnww=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLdUjCRA9TVsSAnZWagAAeeYP+wezWR8+aox+BB5Pl3Ph\nHYnL6SQTldkwulxiNpX/12kQy/+rFA6cUqmaglSByUVpoGbv6YldsHPMmkR+\nKSMwFlDEgBt9aNMQ1qlMoWbZVYsrOPWxhB8Qsw/B1+qvVAFWkUIXxQEx8FFz\nfBfihnLyzJ0f+eQeAzaOU+PTK9K9foQm42IruzoX8sNtwVeYJpq7QOKhqQGa\n9yMbvhItSgYfk3sX/+y+bZ3j4uZyGspQXkEK/3pkRIAmW5rSLBYM3BInnQ2E\nw9DkRIsV3ONc3SsGtPnk8DjP6Ph1P9wFGeZgNRq9LhVoO8+4KOKcOSXlBZ69\nCZVVW6lNRNqwzA2I+ZCN1FbeNqcPjH0q2SVLPQR7m0JVOS/ZLo2uApat9biK\nj+J+X13V8DFo8cMdi577OhtV58WKEhs7oXDOHLHSwbMZoN90mCckyPUCwc/N\nxn3Ae1Dh0mFeOJcX9Q2Fu3J5SkZPXl4nHLyf/NyNCUnMvZXqsqmjUN6ur6s+\nkqxSGZqJwJV9EtG+5pPdoHx3J+2yYlw3iChbwK2LFdzDEBBFuNFIspcWxBlX\nyMiUFv5lrMr28m/SB7n3BLfKrPVrpw/vgDFYvbP8TfUzSDWAudPPFRD75nFS\ntGrjzsiOC3bRzQEhdfRlY58cIgPUqGC2E9ZHlvO7PToDBaDO4FDeVqZ2q5ii\nO5aQ\r\n=BERM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1d44f3d4756d43123eb01bf293e65f4a3c2e64c8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.0","apollo-server-types":"0.2.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.0_1563284770557_0.1402659574327989","host":"s3://npm-registry-packages"}},"2.7.1":{"name":"apollo-server-micro","version":"2.7.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3bf8926217cf465dc19fa894d7aaae2fd416e8df","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.1.tgz","fileCount":26,"integrity":"sha512-kWzZlMmyJ+4X+3+ysX+zpBzmF+wyHQt5caW8OOelOyYoSvrw5KxeTK1PHE7c8MLZHGVbKYxE1k0IpTQpmTyqTA==","signatures":[{"sig":"MEUCIA1H3Cqul3g8CRcSvQmsVbB5RqM+WIS1B7zltiVaqd0iAiEAhmK/b2DOb/zVsw8t7xpT8Gy89B1S+otnMm4FThYXU7k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOYjKCRA9TVsSAnZWagAA6y4P/32MdG4+Gt0b7kisJQpL\nD2LClQmTotc4mtyBxbzTkJL1F4OyxmY2L/y6X3PKRBJMhyrWAGqAU5zw1Vup\noWs9gQkFWTDkzS7mK26QvkjFEKYToB8h/fM2UAlF3y2WV1DhQDH1QBHQrCpg\nKkPwhVrQsTrMic5gVmQA1aOwxE/1IvEcqcvLyZIa+KkQ7J+C4rlXe0n0hqel\n0BR+vj+sbfpen4byTgbDZelcUjjhr1VMUzzNhDDuUzGBM0YcZRDK+sWFOBMP\nDd1bkFswEcngBx6B58af4XRysf8P5d2WB2Nxo64QOVtXWWI9DMLJG49hIPP7\nTMsYD+7sJZuU7GxN0fT6u6SpArD/oQpqebhnIHTjBjhH6djOU2RbEsRISczg\nIy6M2TEiBsVU+lqTJFW1CLKydtTtuyuNybIuSh8ey7xOwSiHus3mJ6RFn6p4\nRFmH7mDzb8fa5SYOHQl75wcJpo+XpWHjcIk6pEnhSWTDrnTVoQ0KE2q1DiYO\nHzgiRFvv1il8/tBe7ADdoVRV/L04ECA/G8W+A3IYCZmtZtpKBC59s1EgiX7I\nMlTf9QcYK2U94X5SEuCNgfFRBfXyhfZ1KYJ+eb0zL7Oi3ZCTHZEEBDx/C0Np\nJdDh1BssVvQSLd1gXUYhk7bgJI+dpg6Q5lM/KErJOSbxQqH7vDe2HjZGfz2C\n6XwH\r\n=zcWv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2f87e4af9a6f1e3c8f4c51b4f77860bd3150c8c6","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v10.16.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.1","apollo-server-types":"0.2.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.7.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.1_1564051657459_0.04908940714227694","host":"s3://npm-registry-packages"}},"2.7.2":{"name":"apollo-server-micro","version":"2.7.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.7.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3248caf36eeedd6e5d7fb95b74d7469a04b8dac2","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.7.2.tgz","fileCount":26,"integrity":"sha512-OoXg7kLV52T+lJZZC2cBQ1XIFlpW05pULyEhlCXxTMetDuArMCnRyNzCGZ8MKQkOUTJXuX0XJwvxomII593njA==","signatures":[{"sig":"MEQCIE3eteHl6rdSlSaC058e0BTdrYRa8cGwQblqAaTON/fwAiBpzMV5pwHK9mGydl3gCn2xYBcOalauRHyKnGVANKsEuw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdO4zICRA9TVsSAnZWagAAQIcQAIs58zHrFn+Y2jbxmilt\nK6dvaOxlVjOixVbaHc87AxiiRoi88exDtyPq+U5OlZj5cypyca4raFVZ8YYD\n1MgkMTspvNHZhODpvno9TT/LoPyJXgN0decedmPcufKeFchGH/HGAS/n/L/k\n+s54aU+D/3c6Q1ct+fcsTYgmCUWJyKIF287WRx4XurORaduubNLqSBk6RmUv\nlk5FS4DsF/4//rKGUnyx62Pc61IvY0gK0q5kDe14xA0ZdkN469kXvj1IGgKR\nn95LtoKgXGeKiD3T+XrjG5q0yKg00dQ32jxrVeWEIQSVZ+IU0LRb+1GG55VI\n9lYUysGGo7LP4T7X/JaNFPZ8p/ZphzCZtUCB+jwfDUgm5X6solea611ymyL+\nG1HbVtlpPDal7cOsi0f458GQM/P5BretboCSvE4dEYXa34ZMVlHkASv6nryV\nqCloxHCin1vecG6oHktcFEn8wJpVHKruwOAgAGLHWk0Ma/V+7kztyBEaE8IA\n5JKOaGv4Y7x6xOvJZB9RWId9fftf+muYGuuH7/3KqOjA+fhPFbrC0u6ArKeZ\nKviiHOadFzAjil1kgpLwRK8MIQyb+uQgVBNLN64e/t9yvkwAaD1rh0rMG0hE\nhbdFkxZQA/RNOasLPiMZLU2TMpeI70S62RPfdk0AhGEJeGm51Tv0GQeAqmL0\nWnWu\r\n=2DnF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d0b33f20ba4731c071d6fd8cfaeca1a1f3d83e4b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.13.4/node@v12.7.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.7.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.7.2","apollo-server-types":"0.2.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.7.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.7.2_1564183752192_0.6704297171470464","host":"s3://npm-registry-packages"}},"2.8.0":{"name":"apollo-server-micro","version":"2.8.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.8.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3450732821f3df9331171925467a196aec1e902f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.8.0.tgz","fileCount":26,"integrity":"sha512-foidtmSkVLa7V8I2i72z3OohuKv66UuohHjiAZaB/BByiWBMkxBUiN/bhBgIk5EMwNO0QlSVnD4olB/L4rwRhg==","signatures":[{"sig":"MEYCIQCU5XagMBLACB2BdHOJBWYvdsdNV9KNRtjYHgNzDslGxgIhAPmVOeBqTNQ34NyDd937rBAcVfmQCVLX05GR9o1uTMGE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdPyl/CRA9TVsSAnZWagAAWwYP/3hfe5AxlzNndPFs+a3X\nBYahqphkqwTJcnnGHmhX5DcFCT2j1vk2HHKcIb5JtyhbVLyy3kSwGiO0mcsk\n3p32rKiLUDU1NyX2VfsxwX+Ulhuz4lCs1RamyVvNlv1G2w69jVe00xObTMT6\nOX2sbwYO2kH90V4qG8RryUaqra2xWjyovnGo6iHeO/Y8Fe+bTQZrCQMNs/cx\nMyooWUrcFweDwMll0xE7pA/NlQRPpfad5Ovr5N1qqNFzTOdz1wLTRWG/eMik\nH0Q9M9Ie5CXukxXvou5pcDXLkVC1P+R1cuT84/X1NOg33zwRFAQA0R5LptKa\njI9yDEcvqLo9ffISrq/XYF2alxVpNHRY9UfBH8lRFmsYVydFsGTE2RdE5dn3\nmVER8CvPpcybisSS0nRIxfKpkc4oL71KBOFBORNNJAox28LnmcphulRckYv5\nvAtvBka1qUG2m68NlyPTJzzVcLvMcAxS/8uUnpPRHNy9lYRBEyAEECSJkUqi\n4IV5FVhIcjewz6HkJ1/NJMGkxitNgyNe8aSfbXvqdslA0l2YJ/mhY6zdxs/J\noBk1iNRyJ+OL4k0YSbpmAdpokYUiwEzqIDVz4GvA4t3xev/AxPVroRSdhM25\ncKAgaZtW5J45KEINcbrzo8O4stO8F0/00F6hTCDSxlZsQLta0DEN5prA7trR\nNy1O\r\n=v5C3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ddeb71f8d6a0f3c91646aa0c7c99d2003b5bf73f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.8.0","apollo-server-types":"0.2.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.8.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.8.0_1564420478792_0.7651101455656448","host":"s3://npm-registry-packages"}},"2.8.1":{"name":"apollo-server-micro","version":"2.8.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.8.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c65cd258aed0cd3b6429e0d988b824bca3d67d72","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.8.1.tgz","fileCount":26,"integrity":"sha512-6zX6ZkSYWD52PxvvYEYl9HZorvdk6krxRZUkwgzf0aH68b+nc+9fYvU5N/adjBRpW2l4/K75KojtGdQTtMNVcw==","signatures":[{"sig":"MEUCIQDYQbuK4YqhWN0Mf/Omkin6yglU91MNZjOkF9MZyU+zPwIgE4qlMD7WPylIvFTlLa67wnQ60Ew6J/nG7nr8+meSYU0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQXi0CRA9TVsSAnZWagAAwmQP/i4fB+iWkeHmI2JuDP8s\nvYvFkIMbQEIu03zwPG4B1zSZxHi1et96pw8AD0v9IaFPXKJHUj4IxclD+oSV\nymJR3PfSL6KB3p8Xl/y8eum+cVfKWiEN1vKhcehQVSq4lddRzkq7jYvbQ4GM\nmAOW4M91XV6mKseX1MFarCvzDzTPgXyWALX/VLhbt7KhmK3Sex+H7mvVrxJd\n+D0a7+TUbcURlGlibKvKwNIlnX0iF5p0zgm8Tb13OLGGUE9+cbGzwDIEXNxQ\n779Fl/HfO0I/J3tmdx+QLK2LQJWfLMFGcxb8jXu2mJlceMb8opnkAxSsccBn\nLe9SyPC4CPPvMUE/5l+TpVAz870iJNyb6qTWiLbcThaOvDbY8gh7FgebyZiz\nhQxaXc4Ajw4+PZ+RZah5tT241VDZcTi9bSzApi9/A6WZjjEK+pQOMMPbnMEY\n32UYEORIUxfUGsShBcD+IS1uxHj5ezZnzihRIzH57kPjAZKeOGXUdAw+WwNm\n4HU6So14b9fbPLOSjNjWDxYxLj5fmoA2wXCEZ7El+U4f+vd4om6TJkuj4vpI\nwZFe2IfNunZDZsIG+Ru+/JkqqiaNmAoSvwl73VaYiiG0ULzjrl2mh7knmVFo\nM+bmgU2i/134wvZQ9xQ3CRvxr+2VRn29gc2Y4fW7tVvWKsyXUv6kLrVDhXol\nkP0z\r\n=vf8Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"84d80eba10d87663dab60af4a1cd46bccf30513f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.15.1+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.15.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.8.1","apollo-server-types":"0.2.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.8.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.8.1_1564571827371_0.13633913803825415","host":"s3://npm-registry-packages"}},"2.8.2":{"name":"apollo-server-micro","version":"2.8.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.8.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"789e3e146fbbdabf82149891cca7716e317af2f6","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.8.2.tgz","fileCount":26,"integrity":"sha512-zDEUVCdDGzujgyZcuv+trnETgK7YuwkZDq7YLXVQ0YxMhWdH25v04Z+Sq2rAQmCoKwwHuspMQ52tX99t8GdVMQ==","signatures":[{"sig":"MEUCIQDPSwWl+M2HDPc3LeXXbUwYh/B3vZRyEUBKYlnA7hzXBAIgbDk3Q8iPNPzjhyuHIDGwT4xumaVSqbOsuNEO70OZAgM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXDXcCRA9TVsSAnZWagAAXdkQAIMO5cOF3PdlRYVWHFse\nJ3OKASLpchBsQMbDoEUNW3DOyvmkSA4PicvPvaJMlrogbJTtged9DBCf07Ez\nIlqPwvsV/8wqIkQFQLLN+rty35e6rTXWxVrpN91hDiKgmF6RdZ1dPTTZmgls\nWFXZK7+p5mQfRjJjRWElD77UfmeclAh8KbXAGQ1b3UGbxBNJulRU/quydh4N\nTRIzGrpRWLoKt7Tvrw72UfXLxWmlv6yQ05gJRCDdTAoUFpev4Q7G8n3QWbJx\ncw/cIZF9etgp/dD1H8h4W4mTtTuuQ1Vzie6y+6HCmy1eSSLzxLEMzipmXK16\n5XBUsVateScfj1/qyJZLAD11UnGQgLqPBLFukEUgYA/RqeDjW6XhTkEz6l5y\nVCmT9P2J1SNaA85RvW/1dNPHAhk1SbPJSytd23Mf8/hjsuwBS0zumrC0gzgD\n0oEhlDq//BuYcuCHirgPupcpCw4pMHlpWYk7YN54UgZ1sSuNETVj06Y6WhiO\nHH3nx93vqds0ctl0Sxl4C1Z+PkzxoAoUgnO3x1Wk6AG6cKMPvz5CDnlhEChQ\nIIUT5xi27UG3HnB+swZ62Wf8rjkPjJWPoRhlv2s18c8a2GeNmUndk3I146o1\nmoRazB9CHDwpKcp31RAq4iBCbQzVIOmAqWLPfEUGzxCrJt8M3WtdHVzmE2QZ\n0PdQ\r\n=f6h8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"99f78c6782bce170186ba6ef311182a8c9f281b7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v11.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.8.2","apollo-server-types":"0.2.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.8.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.8.2_1566324188149_0.33833125507668793","host":"s3://npm-registry-packages"}},"2.9.0":{"name":"apollo-server-micro","version":"2.9.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"60b7b2ef2eaec85c13dd835da6d94ce963958e65","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.0.tgz","fileCount":26,"integrity":"sha512-EO9W1pso1AETqAXw0SXtXQ8VfawlW1wcatfipc5EPFa3RllYpxnbxkwjTI+qgidug2k8PGKVch5u+5LiLfYkzQ==","signatures":[{"sig":"MEQCIFlseRAA8eA9j50fIdpQf3x1QxLNVMZthIScLvkNE7JHAiAb/Cqh67VNhyE3ocovalG2aWviZO6d/E8aPiTfUSql4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYAS2CRA9TVsSAnZWagAAVIcP/27RNT5pE6BiIWxw2MlM\nKUuLrZIzO+0Y1GQpde0YfupBxymDP1xdNbUD/way7naWSbAUbD39KbOkLWf7\nK6pw6E/VY8mYvqYqXC8OBrlcJKuQ8QTLdMIsxxJZ03UnwqvTA401pQq8XFVF\nLvCXZDgn9W77PKui5BDovNa0cALKRC2SMChM5SwhzqeqjQrJgLbKaY1BJ1/B\nVPlvGgA896OTdT3sHhBo63xw1+JTyvt9jCaTTLzQ4fsAp2Ynbu2ZAGVS97P7\nG3en6iVTAF2fNvfPNMcGy2wWAFWVnBYhau8B2lJb8EwESkZZM8L9bir4FphH\nhKg9W2HE7RlurvsZVBtGmbA2kCR8HO/RvdXNKzOKyxYCw4zR/u15RzlMpFfl\nk2yKxJyo/eb1fdqilWxX5qmcxp+kGyvVLt65OVwTt0XE4jfbgZF/dJcPsvDW\nxQAnQLgWppVUSL7fvQyqcyCppwYpHzwoIA0OQvaTRTDCUyo2aSy4uxT6pozG\nJtB4wCxH6PxxYr6pGTyzxG0McAQ8ftO/7Fvg+mIC4gXtqGIVADoQXRdyXSnC\nAIUHI9/LzW24Tq8T+iZbHjzMx6EEt+GrkZU2s1T47Ej0yhPZPO65qEY9RXNd\n2hgoRordPcNflJPY9estRDxCrlweeXTXWWfXfiDZCIaiA3iQ5i3w9/HPHCAU\nUZtO\r\n=Xlks\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6037f6e80fdaa53b50b99ae94d93c724c382c23c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.16.2+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.9.0","apollo-server-types":"0.2.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.0_1566573749944_0.27399143706325857","host":"s3://npm-registry-packages"}},"2.9.1":{"name":"apollo-server-micro","version":"2.9.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8cc0ef601e1da7214b9c76fd9f5b1ee2b8a0de32","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.1.tgz","fileCount":26,"integrity":"sha512-mt+qrTyDZaVFZZimPlrKz5X6NOsHP4mw1EStmhENNjuLXasWSf8sS3j5bM1Zif/txTLplZdhGepIZlMC3xP4ew==","signatures":[{"sig":"MEQCIC54ZkL5SGMOUeecN90LGCsxdT4yTG+j/hLTTRUrCExyAiBgr8lq1LuttsZ9KRQ/kN9mtDE0Kcr5xxglNsedMJifng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZuUJCRA9TVsSAnZWagAAfoEP/3wwB1HbDLGctak6dppV\nGq1+MNz6o3zLRxn79F+XGv52Xyw4s0oOkoNofmQxHfqoja5zj+/Cz3DE8WmV\nzF9MHD2YCLooz94gu0+/vL+cuakXV7lp5HCMpNEwZ8LN5VwerKlDzV7hiw9Q\n3mHZWTT/M3z0SywFdU3ZY8NZFWE3wzqDztvygLiQS8Ja+x4C5CZPZQ0Avw8E\npvSULnDjvO7LU6Xb+PrxjAo02b7Xzev9aaaZm6mT40A7W+A9AsgcAndYbhYd\n28xo0MTcLZY4KwSzFRlsOOHNebAi1CT16z8iLqN8uz6F2evgpMKCM0GacCuV\nQe7A7c8TdOeztwXV1modU53yu0K07WZJKImcDKQT+i/81RMRNycQPFf+ga3c\netQph2s6UikKdOZAZgaFKmZvUqKL5y/vgXK5HKxUoo8axIqJ4yy790i76xD7\nQ94VnuDJvr6emUhDzii9R+6Pn9W8vyMudmNoXfC6EIJeZ9Lrzn4rvD23EGN0\nPFsO4YkTH0hm+8YUkcNAKvScjGkPYsxV9torqNNgMl2RQ8UHlru/50ghBvWW\nWTfux6LXEd1l8JSf/bThCt9KxYYiUbiIMyVmF+kPHl/LzPi1ghldlcZ/P37t\ndWiO8zxXloO7TgrSf88l5l4leRlZx0tJ66mKJpYNeZbgwJz0EeXvrOwxB0yF\n7uQX\r\n=V25u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"029c8dca3af812ee70589cdb6de749df3d2843d8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v11.14.0+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"11.14.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"2.9.1","apollo-server-types":"0.2.2","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"2.9.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.1_1567024392811_0.6398548494232572","host":"s3://npm-registry-packages"}},"2.9.2":{"name":"apollo-server-micro","version":"2.9.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e6c29e3baa38fd1975e27c3cc99add8b38976b42","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.2.tgz","fileCount":26,"integrity":"sha512-PY4lHwFu1C7bBhIbUZywMHyH6e/9MNfTpK7cxjQfsS9jhiKoHw/aBy9JhsmbngDmYMEBH7YvAZAe7wZ1SKK5CQ==","signatures":[{"sig":"MEYCIQDNRcSBkJFw5K3kZi7TfiTNdMf96DClAkp8NXEu/ZNKZgIhAJ/bZ/MKCe9JWPJDfo5dgwOoChYj12KZtxaWAO9P8RHu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaPUUCRA9TVsSAnZWagAAWRgP/2pdMFgr3b7a0eWG0G8N\nFjrgAD6egGo+CoEDJYiJLykBG28qGqFBuBDBJ3NKaoUWbEG1hmch4dQqWXop\nBlMwfIVAmnN6ovXrvlXXtbo+m6OnX7JR3ibtqOZt0fX4OfIHmpFlOoTXI4Ac\nbO1RCnl3aJCEeNdqltjTda/qra3RvsQgKn6dCNvf1PsXzmRKK9IQCduKCVNt\ndv5IDjk7cAujKKWC1Y8r1Rh7DeGeq77L/M7A9TA2H08AfytDOH2bhsrS/GdY\nE8S12VUvCNi39dx5OWWc2vNUY83IQC9pofF9JowVdGRbjWAUXnO4HSfR2W4U\nSNRAhGvC3lCXNDFvKbMnQEzpjDMiTTyxksc7XJUu6FFd7UyKhNkCF2exs6b0\n9vdZK2jhXQ2YxCwPyCzokR5P8QJ0ZD1Y01ALwidYVxjz5hACyfxL7oxrCGZs\n9R7LVZ4r12BWYR1KzfMZ/5Ak/u15eIDeXmaJ6UDDZcsD48NHYfKxa0TGe31v\nwMMaNEwQTWwnvrd7IQSnMLLJP/eDmLiFekO50QjLEWh/PYdRZ9myuHW35cG7\nMrWdzVSYKmRLaoDekxj5fa6Utcg4g2f1ugo4v1oyCzWdXtn/gwrc2uG6MZKL\nJvyCuyS5qqZfDcfIT0/SH32QBYlmH1Gr2UTARZJtXr1YBfxpT0Z77XlCeY1B\nti9Q\r\n=ii+k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"92ea402a90bf9817c9b887707abbd77dcf5edcb4","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.16.2+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.2","apollo-server-types":"^0.2.3","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.2_1567159572080_0.34926669195753135","host":"s3://npm-registry-packages"}},"2.9.3":{"name":"apollo-server-micro","version":"2.9.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"98ac13b6af626d3f5bf48c9464d4e854642c4c23","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.3.tgz","fileCount":26,"integrity":"sha512-/o82SgDg+O95diomDi8P+8edxpJMeZcGQayEC80OAoOT06RJn4neFhBpdE0NLOxGR5AcZ1JsAvfYuMRirKtQWQ==","signatures":[{"sig":"MEUCIA8l2gjd2zWYp03QLbX1qOZdwOp9p5tTq2e86J854EA0AiEArgTbjLozXfc4GYcMmSP6EFwe6vfx4se5riUsT08CEGk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbDxpCRA9TVsSAnZWagAA5oIP/1+Om80uvvVgBPpWc/d7\n/4Hby+8HhMxJufuD3868qV4t/FyVnHU0Po8WwKY2FwLefODGFZsBUvep6GZa\nThEjy+y03cI4R5xMB2he9Hus76lcOI0uTs+UfZCtnEVwlYeTU1kjy6hJfJaV\nnus8jQ90hBjB2vpIX/X4ZyhPPKMnzVyaCZRD8vw3pazRctq0EM7PkcvmTAK2\nJe81CQN1S8UXUba81l8UcqH7wo1Y6jB2Ya0Zw4yViGm2HRu6lwHeVp63rEEs\nJ525eTbH4Zy+NB2CsoHBTa0VWWVyvqV3CakKjiLr6rp9iJuJTzAoi+NQ2wlo\nRAwG6MbGbuLOUWU2xke0GjodWVbJvHJwOhKdPIskoZJJbPsxtyHcU+5kgXGD\nSz2dXiV2PZ8ATa1e/mUXYy2DAe7ajlq+IRhzvKeogdxEtHndHCgAmjUNcxwK\nsHfN88h/0ILeMP7HXOYJlbhDQ5BncV3hSbCLiJnZsiX/zfZbipQiXBkfvhkF\ny30HZPgL8ZdyPXnx+vt78aOWA1PdXsSuOAskwPnsLuTHpM8C2zm0G4YcDcOz\nO7Aakc5GzZqsShvQsmB5M3kGh2Vb1T9Q4F9NIBWfTtGyiSxzFphW0tiKQ+1f\nlSnG+vV29inUwnsupft07NJvNHXKgutrea5WDjg0OVHYwVNJFYDBIdRTRBYQ\nO3XC\r\n=fWfs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a1fbf95fc01739d5cbaa59919149bb85c563fdaa","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.16.2+x64 (darwin)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.3","apollo-server-types":"^0.2.4","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.3_1567374440664_0.8174926961172511","host":"s3://npm-registry-packages"}},"2.9.4":{"name":"apollo-server-micro","version":"2.9.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6f640f9322e713ad66bf5256b527e2b396074ecc","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.4.tgz","fileCount":26,"integrity":"sha512-UkFAbyysp8PIS2PXNNpj5RjA5choKbCs+MkPtCtwakYy2f8qyX0Nbr6KHtTcipwIT281HA2fNXBIlF1DZPlaMA==","signatures":[{"sig":"MEUCIQDITuMVVvfG7jv9ZYAN4fNfrwyYgwk3Dc8xIGNsqITWqgIganqcFo1PLDB4sKVDeMMexjsEkGEAkLp3OX/OxVIM6wU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdikxXCRA9TVsSAnZWagAAPU0QAJi5mc0Hf8tyOtU0EMsK\nNEvJPkD54a1p1I2T+l3eDyU1noeKcrUEMbyp4Nz9//n85iYDVT1k2dkw9n5A\ndnDUuLOJzLZo37XF6fYUt/PYHAmCJFOehZSqKfTc0YwUHSEq6+OgpT7WPxWr\n6M+CV7Mju/dXbIBDU6YKRCpjuB310V6RlhzDggQRqF2m9PpDpUqHK4q0Z2qG\nSsQowIvRU9a082w0EiMs5FjIhUEO37ScOaNaRyyUSHdHlPwRl9R/9gOV4Twg\n+BNb55TxT3C5A/k7kb7cusXMRnytthhAN8Cfoghvp6xgxBGGiFz1fWyy0xZL\nCCpaJTC8fwcATqcG2kUDszAmLNYrQluqv+PLFn73eKbjckmha6AUwZX6MnoU\nOtfEuoWy3IMDjkoHTKzYxOG3dhZwtSVcgCw5BbhOYD4IxlfMPnNpx3H6Olb9\neUnimGBNxBrd+p0SuNm80X5KEXfV+LwgFZsK34sKy4Aw5mOxrTtxfNOvyO2u\ntWgyx6wWAZAICUVdnyzJyOiBovvetFXagW+9Hn32ZXWjNBt3TCHi5eAOCgSw\neczWcPdAAvasIy6t4Q6ujKcOY4QJQekxB93M+RPrpCPlT1csYEA2coDFJU2L\nrPxS3xDcQC59Xs5NCG5TLxZNCGfNdk6RfSCQstpSdLLHzLKj9gR76pCMCEpB\nRVl+\r\n=ej4z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6100fb5e0797cd1f578ded7cb77b60fac47e58e3","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.16.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.3","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.4","apollo-server-types":"^0.2.4","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.4_1569344598946_0.8720927684774562","host":"s3://npm-registry-packages"}},"2.9.5":{"name":"apollo-server-micro","version":"2.9.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b789ee3e4d9eed5cf1873c62551fac0aa773e4c9","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.5.tgz","fileCount":26,"integrity":"sha512-wrjSFVcNVA+T0RdxsnzHszxBVVQQxngTnwUJVrRDcpLAYpiSLCkM5+RD1d0sxndQbeuCIAzXs6CgHCZy7BZCEg==","signatures":[{"sig":"MEUCICFvIrvTIUzRReyMYkR0iAta1WR+8PhXEg4VR3iZSVWjAiEAwQ6kZWQov3KknIvbYvx548XHVrm+xEEda8/qm0qmkmg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdl7XQCRA9TVsSAnZWagAASKcP/j88AH5mXIfktUwJGoct\n3H6TNNumeyamnqldIPTw1f9+fmqGrWyhW2J1CqSmpn+55EsJ3DJqCz1B6RU2\neB005uEPdWKSRl70gxnyaZmEfM9o/O0ec3tNVKS4860Vo1Qjacf2UsrEDMRu\nfaEjQx9RFp0VC0wcHSsHKYnczcAI1W2wNYHCM5nrAX+MvJNKTwWnbsjFzQDI\njSM2vMkZJXNxkSmK+1vl1z7B0WmIDthHsX6neys8+LVy4QJdmxru1D6eew2Y\niBB/creXLwtoMUliAj5voBrtIX+AqZYyBsJXwmD7/Z9R8YpzoOi7rycPp+Bk\nCVKJs+FcpoqADPDgrHu5wr5hD55/3NDIy68PF+TQawwJGPDSfaBO3PREGaFv\n94slgfezfc2KzWaRRDyi7cOOmiM48yqCZY/UNsvFxLFNtCRgm2evFeQ07kzU\nd8WZXRpJr702mcvKnR6UbSDHZE0ykf/KeFl1zYXbUeXvqDYRd6MbTg3X0iep\nVCNcjfwCD1GFaS+dywZCmQn7wDvuS5mvi8DiWLmumfKHFuArYKvk+JublLMY\npVk9FjuAn2qinFRZ0FuzeSVci8+CPX+jmw/wEihZzOjpfu6HBMQKlm4Bz6VS\neQN7vf2cHMuNNVJR5e4NwuO7Q/bhQFiTs14TI36OMvPZMI9oDNtUKEEI1bTU\njcJ4\r\n=e9sJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"aa200ce24b834320fc79d2605dac340b37d3e434","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.16.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.3","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.5","apollo-server-types":"^0.2.4","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.5_1570223568078_0.5812997515825344","host":"s3://npm-registry-packages"}},"2.9.6":{"name":"apollo-server-micro","version":"2.9.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.6","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c2bef83aa7f1b8f4faeb41d99a2d6811fd3c1e2c","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.6.tgz","fileCount":26,"integrity":"sha512-FIlcuxroS/d+bsuHrqYZV+LjGXIDG7XVisf0GNKe7nzvOZoi4VYchn2tVlQBb02+J+zxgJC7X/W6HLolmFachw==","signatures":[{"sig":"MEQCIFfKObKtR+vfTk5Qf+DQlLnjBV4UjMYuDwa0rOw7cgETAiBc/QMfKNM/0pIskr2cgQjIdXI6LnyyeAuJTX6IEz+GRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnyD3CRA9TVsSAnZWagAAgfMP/R9hmEDZwnvz9eAx3yLz\niNX+IdH2wcMTEcpEBWvXwoiotHXY1cXXi7TxWVLzotIiKPOd4NUkfe9bsdM7\nyR+zGkdlx2rbM07R4T0O1VXpEMYK4E08iwoqPx+1NYPwBo8lJjChQozq8HgP\nvKk+uZOrvYAw+DZ2HsHOQv8uJigFyjAc4QD65tCn4U3AXBI+crVAv1ppOACd\n6lrn5d7wddidWBK0EwInPEwuoJxH1pkc2kpWYKfcDtRSMroDl2yy24tjvrAg\nq+JYpRhzjVEUDbIeFPwggGmyE561yMxv1IaCqc7DF1E+/uLRw2wl3UaR+ELP\n3OLhZYwMSqf07RB5rbLtRULB5+J5f70tCGetZVqxa2w403uXASIf0mrVARui\n4/yt+KLAZMLg3Q2XD3C2HKECZneP6S6vE4TKJ5Wp5FiRYJyZARTa4CrCs8DF\nD5dwp1+PYBwb3kp1ql2fBi9BUivD1HIWY7oCnmAdbI83rQE09lVZpi/vWzpQ\nAgquxkALBsOt+r1PpGWunIY++veOtFGl1A9GEFxq17bz9kth0EBqnvHM1ZM0\niam8QgNX9Kg2MOznc9EVhdw1qyB7Qr/WZao32PR1lTQNdcvuunKOEt8COpqM\nFvuKsbm7NRVd8ACcOP/U6IPHz+C271nmFz8Ai1IK/BdszLF11kkSmYysRjqX\nwdXM\r\n=Mx+Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"fc7462ec5f8604bd6cba99aa9a377a9b8e045566","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.16.4/node@v10.16.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.3","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.6","apollo-server-types":"^0.2.5","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.6"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.6_1570709750309_0.5896146093452483","host":"s3://npm-registry-packages"}},"2.9.7":{"name":"apollo-server-micro","version":"2.9.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.7","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e54c8d625faac31bcebf3e6662b6c0a163c3c5aa","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.7.tgz","fileCount":26,"integrity":"sha512-ZLAOYd+AmkQBXS3oiSoN087KBeee56EbeFHPul3zRDCMwv9xRpdxCdijkoZEG6FglR/J9v/hxzOK2+5b6pHkcQ==","signatures":[{"sig":"MEYCIQDVhqaA9yNnb6WKYlvfULm454f5EP5SqeLsD/pdXEdqcQIhAOfSYqnRQA+bAt9DjaoMAVwy9NlR1nwUpa+PjBrYgddm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrepOCRA9TVsSAnZWagAAn5MP/RckHXgjBg4SWwPYHhCd\nwyDc/jTnkiXD1H9bBTYXGunp9nl2coRJpeXNJVVUz/oK3A95xh4Plc+EJ0jL\no5OBD1KZCpWNcCYw69ibuaTMsTiyFSXcAihx7yrJoPKCEcCQBwDxgKJeXRgm\nRUGHTsIzxIj6VMq0HCAgGcCRX/tOeZwJHjqnNhm8QZkeFkM1l5BgfFcsTKMO\nT3b73JDZ5KRj/4QIZzdiwW3dAoXqFQuzXNAg28b9zwM5VEvkRrz5aPimBSLC\n8CAaheOS7MYBK0kavRPuUwbwq/IBD5/SJesBgnEwYJa1P4D66BoWo4xV2nB7\nUjawkSDNg77XDzJtx0FDkzvxsPdZoyVDLdr+NgCDT/DddINaBPQuMe9htDZ1\nVaX0NSivU/7nDVt3hq2GMcFqj86X0JMupS1KN8AAxkPQjjVi/DjZJD4U7G/H\noKLNELXHrsGq9AbmxiJ/7Ql+ZcXPTGy62j4lajPOwgtibSCL5NMl5hl3mr4N\nzeHkwRIx54oCAxtfixdmksiHP4+JOmYEzZf8QzRee4J/5kIrbh/nluqfmi3v\nTh1UuXt5c35M/Miu7n6GCStWQtaVVI4iYagKT3iu1lyUlGPLxywwpAHFbLsM\nD0loLepGgezE0lMNOqAOf4nXS4VL/oU3uDe/KNDYCXBpNQwMcuI6vvyqVToD\ndhaj\r\n=FI0o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5d94e986f04457ec17114791ee6db3ece4213dd8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.17.0/node@v10.16.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.16.3","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.7","apollo-server-types":"^0.2.5","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.7"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.7_1571678797756_0.1282993764757041","host":"s3://npm-registry-packages"}},"2.9.8":{"name":"apollo-server-micro","version":"2.9.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.8","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a7ade0e626674b7bd37c75840947f5299475577b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.8.tgz","fileCount":26,"integrity":"sha512-UELGUOgH71KdLJOI7fZAJPigf2tLll3NYNWjkJIiYR234lc2vfmCkuU6NbbASrtJEGzXxipYWwZtYehTDdkNyw==","signatures":[{"sig":"MEYCIQCG4dI//qPh/++O7DLMSTDu6+5kulyfDATF61Mih9GWlAIhANsllIRUFj3VziJR/12e0AegBxAyxzV9fMfXOU/U7I7W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyv04CRA9TVsSAnZWagAAWSEP/21yzWKgRZRla1FTspt7\npveKBP1hgrvaT7niNv+/rptzH8WunUMmTgD5zczeF9az2IldYDC+V6QOcL83\nNuj6lN1ZjF9kTTpmNfxQkPTQCwQ/CNly3cty+5h9fujQKCiUYk7HvbaFEnLq\nhxa4NGOJAcXVlNfr7BMLe5Cw5s9gVZTWoCzTdpt1NjPnykhAMWB2jlvy+qQA\njCEj+t5G25nESgguHQlsnIaWVZT0JxD+nOAX7yn3ins4RiYXXeZUmlWmOJgR\nNZ9R5VSiaaX7jAOdm4Ist8KL1T6o0GkLoG8Rs8M1XSP2zYwpKIZuZHBun3Gu\nq9Q62dT9mxfFGUvsvy0fbNJtVNG5vzkp/H20B9rU00H1KKPUbdNRi4+YWV2h\ncjElR0DwhrUtvVu/7KcZ6qQGzSUZ/ZZDems7gMXpd71Ln5FuFG/lMi7DG/Py\n0M2lRw9j47Oeqs7EnCpHpzO5US8C8p8N6jFUaw2dqIhsRbHryBJvld8CSJvS\nXvmCBp1xu8CcgLV3scW7fmcgc3w/vGqfW2rwc8xHrn0DlpKNcchaHfh0XgoZ\nEmND7xAwvRAmIzDqc91bQA2wybD514inxoBo5KR9v4lsBeHYQQhcunZ+rj1m\nMXv+SBE6fGlxQB7duZaLGEdXgUxOlwIHoS8/MvtdYRQwwSm00jleoteiZLEu\nClht\r\n=DYgv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3cdde1b7a71ace6411fbacf82a1a61bf737444a6","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.18.4/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.8","apollo-server-types":"^0.2.5","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.8"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.8_1573584184207_0.24793762832028876","host":"s3://npm-registry-packages"}},"2.9.9":{"name":"apollo-server-micro","version":"2.9.9","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.9","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"7fb8835ef9697e3a4d2f7f78fe1d5433a3c0bf07","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.9.tgz","fileCount":26,"integrity":"sha512-N5Jx1Le+BzHXhS6O1g9Uv7il9PJJsEtfqoNPVLuIoJH6TV8j9bxUh3n05Wdhv23OcEhenE6VJ0HpGEh2MX490g==","signatures":[{"sig":"MEUCIDyKIbPbP5Q3tuIyl95CBxsiuicu0VuwJHzWR6o3xwNdAiEAleo5EaVBTtc1qbuypeEyKujMri6qv/HDp3UOOTV1+Xs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzIcMCRA9TVsSAnZWagAANPwP/340wksuKM9zUBfpfSwr\nGmWEy+NdK1043FDtglypuVJpNjyaXd/e8+oBHW76PwQlNCUxJcqF4X05fsUg\nruXehuOIO0qSQWxTUfm0/hib+tMOWVvkXWTiGmiM6B7mCCjtA3OnTuJHIHEC\nuscPzV1jSfrwhE2uN5N368x+YxmOSE0YuKHb8KfyRShZ7lxnqttNP6WWCbCv\nTM2Cg33i9h3MXrHKtSTLNtmnfKUc5eb6YKE6pHON7s/QvTIYps+FzaZ+ZM/L\nzYjzQCbIOX9OFZ4MG7XrdmItlDHYa4ZX3efybM26NDgIITr+8K5WIezqL6W/\nlxht9zXE4TCceeFxalQmzGebb32xgOJk0q95EskWyN5vDDw9Ou5kAFhQUX5J\nBzS6aXVcBdzgCUsMaMrD0yHl0rZ61CGWhpRmmm9Cn5nGI688kubHBzNHNYyC\nmTjYQ5jVkCmgL+bcO3xQbsVEXGGVIR9yb8D/X46A+KhyYJw7ZBoLPkAvnoHZ\nSfGotNjLSznXuP7EsjGVDoYVsMrItBelx25vEDTUHg9iK+I+DPwanPs6rErc\nIywxwRJWB+FJAxQpsFhjDLW24YZ8eWuXQ7fLjyNFxlMuTCzL37nuDAxow5HP\njO2BvtPyLFHNkK4l93jCwIWzT6WfPGEu3xfQwThNERzsDZPGEYKGGW+x+sRv\nA7vI\r\n=+54Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"93002737d53dd9a50b473ab9cef14849b3e539aa","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.18.4/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.9","apollo-server-types":"^0.2.5","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.9"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.9_1573685004325_0.2639042860371468","host":"s3://npm-registry-packages"}},"2.9.10":{"name":"apollo-server-micro","version":"2.9.10","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.10","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8c2278344b0b64be1fad8ee7084e62aabdeabf20","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.10.tgz","fileCount":26,"integrity":"sha512-V411Oo9v6nklN5MhtwIJcXS4CPTSRhc8L+s7PJVTF+B+KV3lGnagEFUgJaIEkoxsONin//XJpbp+QNVV/giVig==","signatures":[{"sig":"MEQCIBjLqQa6j7smRxArKS4ioFvBUUnNxfDHnlHRlHP2DzzbAiBoBVs5b1Wy8bLEz7MNqE6ipCTgprR23GlXjy6q3tfDNw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1b3FCRA9TVsSAnZWagAAP38P/1P/dd3Z/GMGwoaQYPH8\nQ5Pjv64nlFHbIGo9dZDFauIV7XKPtqwKsE+3hT0cHtObJvTggeaoFTqerT9v\n4sO5GtGYx+EhAqxsdpoHQKSCiJPKHsscuKiMRNJKphfKwiHZJCaXdCVzoBz3\nK7tu8Tj3MXh+TXklHN58O6qpq6CFv2AVEMlQ1FjM4Pfwd/i26KVk+yQdVPF4\naYiECf7eABcdW4WsBLL7HHeV/+zursnsy6pZwVUP1iS+FOsiYP4MiN4Ne2LX\nv4HGba7xIwMRH7hsSk+/dqZg9hKautpd1g0A1RsccNz0GOiUF9quOpLFznJu\n740mJ0jUux8xvL2jGHr6Fai5ItVYqLtK3UX7TmK47wtot74VbERasPoTNnpQ\nqWoV8CYr7kmQX3qpvSDSHbSWcMAptslRZeU3UCKQrhGlA5DovYwLtDVaR91R\nd7uNQoDiUfFe6L3rJmYjjkJwZpbHuB/Ftx7YQipxTpg0mgUbMziyF55SDHJL\nNE1dYKyq0GAflot7RuxNcCd0T1Z5743+xhjr+kerGq7mhOTvOE4PNyvdOysK\nPmdkArzS8QJJY5q06MXGb12OV72ypRW8LeP05I0xNx+LWoiA/Tl7c+YGyQWa\nNeEo4M7hKlOHTnoe9kwbwFruzqPcJYDNL+WV+kjPKuOySI800nLa5BupUtEA\nXu44\r\n=CZoM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2a4c654986a158aaccf947ee56a4bfc48a3173c7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.18.4/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.10","apollo-server-types":"^0.2.6","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.10"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.10_1574288836758_0.8521217470482514","host":"s3://npm-registry-packages"}},"2.9.11":{"name":"apollo-server-micro","version":"2.9.11","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.11","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"19d9f0dc9a6059eecf84e21fcd1ce878ab11b49b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.11.tgz","fileCount":26,"integrity":"sha512-VjylOw5FUmI5NsQxPyluMpiwhdEMoAR6lXrl9O0jm6rjirHJmLj8Qsswc01aEd8dztlW/P1e4Sudtb4hd3wBEQ==","signatures":[{"sig":"MEYCIQCxLJwo8a1PUO2l3M+97BBxWr8b4N4ESPMTmaLmOMQdCQIhAKKwm4Zc0313LFvhUneMgSMH7jKXOYrFrnsPjoU2X6Ko","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1cx1CRA9TVsSAnZWagAAyhkP/iINq3xyX79h8KHZWcdz\n5enHSOZCPf7xdJwQyN7PA6hTFRuRIDqaKx+a1Icb0NYKlZRyLUFSkjMCzPPs\nUntzqoDM4E6TWEbUi0MeV9pEUWqNGH+a6oXSKjcNUq57hEMH0GPSvexYFd9E\nU2R39aC0uTR5WbyY0d/XteqdIGonGNkbTgC2a0EyOEN4F43dJlvZxQYXaZa7\nm7hu28UjdWThS2z+6w8Fls732/TosewiU1Wo7TyavSC7cm9X57LJ0wBXZuc8\nm954iYje8SpWfoEZPOMhSnycnwxY/jEdJDi9egDnWxuTLh8UU2m0txApt7EO\nhNpx7OFyQ/MPRVV87xsGghVyJl6X4TkW1lQNgtafcmbojPPMN3iGtTkjwnls\nfBpXZGLNEPhH5rOnuDkN1Eddz6wV6cLHSJstUBtxuZKiLGRyr5ziIVk0qDs+\ntAywmi4+L6Q1LFEqk0TR83HRP9tIFe0K8df/VVxLiX62UhT/dvj7HWjFgGvH\nvKpiAA56UNKSOWQQwnO7Yf//K+WLNgEzqlXRRm+djsIjasSKNXJn0Ty7Gx3c\nTsL2jG+LWE5Z8qfslcpn44D+wkhfAVtZ9XUDLvJ9SKH7mtYa12lhu2lTXbqc\nFGLZb08cI0zugggxPwh+MnMSgM0WlbKj3JAA944I/C5BiZlHsXE5wHsKCu5A\n3K26\r\n=JKFk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d49e4d2038df4f5aae824a98ddb21dca909051a9","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.18.4/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.11","apollo-server-types":"^0.2.7","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.11"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.11_1574292589396_0.538901903049422","host":"s3://npm-registry-packages"}},"2.9.12":{"name":"apollo-server-micro","version":"2.9.12","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.12","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6d0355875ea97adfa2495172e36dfee9fc1b8c45","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.12.tgz","fileCount":26,"integrity":"sha512-vMXZnUV7tWch5ABXUpvdIznel1IvSMm7N7Y8ZyWbwsTT1rqjUCiIqfv/E9kmLSs4iZhbsL8LLWI4s3/WKIXHgA==","signatures":[{"sig":"MEUCIQD8fRAkhOn6FF5sOb1C1IKhFXPf4dMjtw1zGi31sEE7uAIgJZOoNOMcTshRFu99XGkpqfmYkH+xRWCQQw9pPtK4n+Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1tD3CRA9TVsSAnZWagAA6RsP/AoqDzd/jNpXD449aP9W\nUwRqH775bomc80hH3tbXXhXtTmqe6iuZK7xsMAiJwq0Z6bsY6RZ01louG41y\n0mqVLvZ5I4GTSlQFh4vH0EY0ggu1/rFTAyhK3IljKMc8raZBSoosm89GAsYq\nj6r8QSBb+YnK4lDgywZwu404ulZVvLS/A2hCyxiZNhAtyCbDnVYyxgzvvAZM\nOgWRih23hdOvRmzxZWNINYPssovN6YyeSs2HHnezlMZ8WAxQSPb1KvIlqqnA\n/69dcZBqhEfz8PAyXFhuqCss+h+tfX6RgFBawjo3ZIA6mSGt7vHWGyfBnNV4\nRXjp1YFFItFvBIgv1PHWJBWCygWMV7bnrQCsj2w+GMhPiYF9mcMpL2SqVNSX\n8UPDtCQb9dsJS1bSdeyn9ipAzqYiwxWWLvee7cIbAfqnj+1DFWRN1pM81lPY\nB8GVxhcEKOg5eK+c5VFMW29VoyZmz5qFwvZ4M4JYycELGKVlWzr+Qq5hKjOu\n/SSGLmK9B1Im0rrM0AKp0gkBbQhSxHurbVeGKQ3784gxIscwVSZ4HMa6y9wD\nrVDIYKLYlVrJlU4AmJFr3Jj0vqaq5UlEBdzIOjqQcwUw6x0KVDxL244GkGAl\nBn36CClgk+gatYvdAOQv2iEAgs2kGEYjZ7NVV0n5SAJAfG5Gb5pCB5KzQ5zx\nS4JT\r\n=enW2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8d065d8b8b7f35f814695e74f5c685b7d68d5e00","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.18.4/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.12","apollo-server-types":"^0.2.8","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.12"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.12_1574359287223_0.11656154345164338","host":"s3://npm-registry-packages"}},"2.9.13":{"name":"apollo-server-micro","version":"2.9.13","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.13","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c1af37d798361a47a1d86f2bdb28f891c40d77a5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.13.tgz","fileCount":26,"integrity":"sha512-lW4JhFB0oXzjKyHFrbOsP2E4137lqNHwyUscD4mZpBpoIMKSGXsTCMmwny+v7Fiqzm6wOj1jUncniMMMbWRaVQ==","signatures":[{"sig":"MEUCIBMuDi9o9yFHSVCP+3d1Y250WHxw6D/GNU4X0PyN6KghAiEA3RJhFEQyvRGzRPI8N38sF7N3i4odxIZWzYYcrdTtH2U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6WIfCRA9TVsSAnZWagAAuxsQAI4mz45rt7xjCNk6r6lB\nuK70BLALXgMDLt3e+HFWMsX/jKscc97GMn6fgCgraCmLLTb0BsU4lQXlE3Fv\nH3js+2lZpBPAugoTGSkbPrn4JxoxIup97R08E3+tqESPmsBKaCvxVBs/gfte\nxmoRSEc+shF/64mYy9Q8mq15d6LR2O36sU1pK5HEn2ABlb0zEzuOaEaV99h1\n6GSWfmIMTaJRDxMIq160owzilBfpJHpdScHR/7Ua0LQbF/705HffNybwRIK/\nGUQV8WbqqxWTFdZ2h6DucTN8V79ssE/dmea/Ihq5yKaV0hY+gVe8NgJZPpqU\nRq/+yhsKFgR6WZ2IUcPcZDz/tFprjjgbHBRMWhPQ56XkcJQui2DqGyVMsmPL\ncIXFJxAPYYr5dcWq9twaWXgaMJl2gu930XdsuixLhQmQSiMTJhBKfjjc+0/4\nXXFjfe8cfeONR12bDJY6bcfgSR13nagDoHtEbiEzybwuwPWPYjSCz6jlF2DQ\nWRdf3lQj6QfdUNvV0T4u2vYtWpZOY7+CMorJryKDicXAjLKxztgrT0SNHlUu\nY2jXCdwOnx9M++8gfRDb37YLqivjsWc/NWnWOa5D/PDXcVwq8HvgvADkqV/G\nTcVSPY7OIV92qIT43Xi1gcUfqo4L8IFQD5KDcSmuNZF9Fvtl3elmiYrz7XWy\nxl4t\r\n=Jb9t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a0a60e73e04e913d388de8324f7d17e4406deea2","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.19.0/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.13","apollo-server-types":"^0.2.8","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.13"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.13_1575576095246_0.6470543017243264","host":"s3://npm-registry-packages"}},"2.9.14":{"name":"apollo-server-micro","version":"2.9.14","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.14","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a5dc3aec570ab60337b792e71e589e0a6acfc959","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.14.tgz","fileCount":26,"integrity":"sha512-JjiqdylblECbzbTH9TBZ54gUFN1oZ/FRBEx/tB0RJ75X5R5wjbTmnIzMIfbe1aXaARTtG+LP63UpH4T04RYVtQ==","signatures":[{"sig":"MEUCIQDegkFYVEKZ8PqTNrc0FtL2I/n8MuVimsYKbC3vs0wNMwIga4alglARTTU0RulR/g1lurav5C2XpO1pGyAmJ7uawUI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+MjqCRA9TVsSAnZWagAAm78P/0deKCff8FqB44UA6sof\n/gLkDCUig+wSbl1XGqIsKOSB5VWC6bQYBjYjmUpJHHDKz54LqaoXenMeCFUT\nWQOZ4hlMEVeXn7/xOAfcD2Ku3meYZx7pzTEhRRmjFgGOiMS3JfsXLaKi92P+\nc41N3lUCWBXF6ZdvMdCS0OgQu/oBvjJTIPfix2vOGtug4C4dJLjbOuxAtV6y\ntpjNWD2CtEKCxlQx5i/Df55rOwy5YpArri2ZdNbscEDRFoJUJIESVMxdK6hB\nb/mATDsw+KcsTuBvM5zmxaGl9DAaf05s17s4x2tiGsuxpZdImj7/bif3tc8q\nM/y4W5P8agQxv4+Ss4zLIt96FjG+MJZbMssSmNdmvsYA9bcaaIWmDn3F8QRq\nzolibFmTQvBfpUJVLmNBxuHj18gPaTO3efdH6bcGNKK0qzJ2WIfo4KtsTJgq\nO6Wmaw89jqFdMtl/q8c10CF0GsejcO/iA6IH3xSCtDO8j9UOMuMGHcHkUbcT\n7a96WYf1++oHi40+jyw8LOTlfg5at3dW5/HLls+qFs8RjBEALyawXTjL/8AN\npJhkgKwjBS031MJrfr5rXus8LaXxXw/IdsjL/a+Rh4vTJF/1NMw3XnHp3ZgE\nYvQR4CuWen8XvUbWRfEBmTgXBfySMm5OvzeOBaXCsZUDyyov1upvVy9i7fH4\nmtu8\r\n=YEXN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ad5eac5ea1741142122e4cb8fd34a9748be31e89","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.19.0/node@v10.17.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.17.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.14","apollo-server-types":"^0.2.9","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.14"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.14_1576585449790_0.6142792971616793","host":"s3://npm-registry-packages"}},"2.9.15":{"name":"apollo-server-micro","version":"2.9.15","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.15","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"90899dfd1b3ebe7ce59c994bffcce7c3a517092b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.15.tgz","fileCount":26,"integrity":"sha512-IMbpcQquHf350EngvMK3/Rr0yNtWbg5RhdXrJDmiBBakCCviZej5ZW8SG+FbmpaaL5J35QYakRwVwydaZKKnNw==","signatures":[{"sig":"MEUCIQCLtqhp3DusfpWaN9ZmqwKuJV+/Vm8vtQWrtDqIlo0ptQIgTkStWxirEAPIbKjE7qZ08fwqYBqOnQ4bdUNnb4Wo7Ag=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeBfTNCRA9TVsSAnZWagAABxIP/00a8JPvrKtIxVWKUM0d\nF0v4EJAdi9t1YgPGrfIWEbicjkzeKzoGyCyWK9x3bK9H2tt8HlmMuaIZTXKc\n5G21JRn84DAJ01htDotiy9uV46ahPKnsYNB8uTah6xdv1O5n/zszdNO5TPLd\nWl3wJzoIe8jHY00RHKTX1cLNINnKEr6wmSkCv/RG9x7TDokiX4UfO4OHbVrD\nm76RMa9TGkccAdprdZswTBR9Xp/k3bflnjmykQrJXPF7gr1hqjL4Ec8Lq+2A\nt9B7OsiXoNeEcGT76KlM0lvV5lji5kyro5+z0LbG3kQZzBt2Ma+RD/dCvUD0\nAim5CVjNAMuVVA4oHSxmhB81L9naCX1lntbp2hJTgYu3rSYcD+hHy5SXDI+L\nN2LAfyj5GZmct6fj0FVzLk/VsbAUXO5qgyBQJ6Zj2tx9LVTGX5SLiTfDeF9o\n18ous8fv/t6T2XxIikjQv1odC5JAz/7S16eedHzQ0N4CKuRfyoPFgHqUwfIX\nKxNsDIvufx88R7w5Vkf5eekBocSiFTr0IhcXRh6EB00q87RIfgnfZWYcmDyg\ngEQEcSgkNqwQJdBLKlczjAnmv9CtRGPq3m/qumXpHZmKGfaDnjFsZpNUCoQd\nRNli1W9BzX7s3TZz36sbG2oUklC48e5wRVxA4z/QRka5kmzOyUxBNcgWTAwE\nT/7u\r\n=YmtL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0743d6b2f1737758cf09e80d2086917772bc00c9","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.19.0/node@v10.18.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.18.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.15","apollo-server-types":"^0.2.10","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.15"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.15_1577448652764_0.8524604164827825","host":"s3://npm-registry-packages"}},"2.9.16":{"name":"apollo-server-micro","version":"2.9.16","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.9.16","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f3e5aa275bfe604c1182178942101905760fab78","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.9.16.tgz","fileCount":26,"integrity":"sha512-NcnZJAf8PqbfAJbIUrCSVDBy5/4iPh0/C0+aOyP8FN32/hhIUDFiibFzvZNlMQs68zB39qhDWZ/hWKJv8j+Vbg==","signatures":[{"sig":"MEUCIQCPEM07i4Nh4mq4MFQQ4Bxr297a8TKK1UkT9nAU0i18PQIgUEWOie8YJFndvjnFKPP3j2DBSeD6GtzxMRZPQf47tMg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF6ZdCRA9TVsSAnZWagAAYdUP/177mYMHvwLgK6JCkYsp\nZ/lfuD5WC4H5YyFf1dnxs12B+e1JCXBdJq0nooEDl9mhSLNGR7qhKTZBHA+D\nw33y6eokYWC5233b8kA4uONq0Rm/otBoNBU9xhstYSrMekviW9Xuz28vgnzV\nG/wEkB6LVMJrogJuWR86L4hS5dsVApcCvKSjX1XQoAn/g1XmhLSq0HPKkUka\nKmo0Vo7fAF/2hPisY0qr2YkpuiG8rjvQ0wSLOH+RurB0AIHOxDBaQEUB5xOG\n1UaMlB/9Rr1z+SVR72OGDyr35YzmxA/ZWwaeemhqYYnHmUAMmRDMIzo1WIty\nZW3Efpgvi72Qr3jpU5QC5IA41DWdKLkBtGAnIOuwjrtWHNz8rZIbr67uchJC\nL+tHkBAlHqY+jSmZF9cm0fE48ala//vF1j2NR9eJSR9Unwm/STKymSAjIE2s\nYbt0GYtOlJU9obUtOrfzHw8NdHpwjK4jluxYEIDPp/z2TqBgEzR6PWJdx2IM\n52ytnytk87qJfC7BF2sPwN4Z0IygWvqn+LByXokTCWvnhRl/HpIHWrGTW30J\n0ilu2oJpYReINReiaY263Oj6JGRIgsvfi4P/OHfWgXzlI8J1/ixK9brq3KXJ\nSEwVqkfxIe2q+emYv77tHhfnJA2lS/YCup9B3A0ZP1hb8aUk+9v/HVBE5Hpp\nHim7\r\n=NfFj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4d1a75e318897c335674c7ee046c0baec7df4a9b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.18.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.18.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.9.16","apollo-server-types":"^0.2.10","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.9.16"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.9.16_1578608220878_0.3516838326879499","host":"s3://npm-registry-packages"}},"2.10.0":{"name":"apollo-server-micro","version":"2.10.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.10.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c86e64086a1dc0d3b309f7fbea235e0403533810","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.10.0.tgz","fileCount":26,"integrity":"sha512-pYLQ+iDYGTuYAdiZ/b9GaS5Zl5yikSi07lfcvYxyrNEUNWtS/4yiMJrJ1xeYJqdU3qRWRIroWNu2vPC95eAFvQ==","signatures":[{"sig":"MEQCIFuRqXxkC2qGodtq4oc42v9WmjwiZ8jbmA5cRLeBKkuaAiBbB95JCE7ngEFst7MSeYeb8g2icFvUcziJBm70df/yLQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePAflCRA9TVsSAnZWagAA/MoQAJMwwaw05lV5Wp6/K1+T\nZNBteBm69hoZuWGY69qZIhq0aDnn6hjozRkq++Ii2a8WVAoD+4QbLmKjD8VI\n14qV+vN0g9xWrinBuNwcPGePk+B25of9iZaDKFuz3K353KiVMlwO2co68gef\nApty7RXwnntLsFpBqrsxZY0D1HB9g32L9ARHhqxiERpoHL/vxbuGNzW9mh03\ngofF3zzHqYcxVcE+ZXtIRZl6JyHvG7QTiTG5rq9yDQo+22YBzQjLtlfMTTeM\nUMGNJ5akwU4rmZPH5QFHLiMaBJ9wqWOtYwGv+uO7r3hLGv1fxlm9AQfPl3/Q\nxRG0AVLtINxKbCK3URfvgfEUAKgauEWNlP7c7R6UxOodZV0Tj6L9Gb3HYCpn\nZWstH8znx4M7oPXw83swyTyjwq80ARxCGVKzi9q1kqQCVUie6YSCjhYPpjAR\nkXO+e9tTiFh0V5TRE3UShbV84oTcmzHN7wLi1Fvhookpm0V297SJOwg/xZoF\nYqqmzoA6hPFCQpjzLpKgjtSL7hsHHmr+k5QoprzZkDz0aL8wWQ7YDyKSNFj5\nZ7c9O+T+tDllp8EJ1k6QAnllbzZdxoed/fvjQoAIAiRepQvB/H2SRW8ZFHvd\n4MR7Uilt60+44wGyDwUiwS3RMow1J3uBMeomsXRLaXt8kKcfTP2ZqRNJxSvc\nPABF\r\n=/rPW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9c0aa1e661ccc2c5a1471b781102637dd47e21b1","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.18.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.18.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.10.0","apollo-server-types":"^0.2.10","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.10.0_1580992485293_0.8036169197897141","host":"s3://npm-registry-packages"}},"2.10.1":{"name":"apollo-server-micro","version":"2.10.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.10.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2fbded6587f710219ca8b206e9aae1eb2bbabf2f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.10.1.tgz","fileCount":26,"integrity":"sha512-gP4dwzEO/gMD+pYzyb43SclJx8oIGWk+iE2tWXqC+57zemBaBzz4sOTmtTZEAzpP5hLM5A6xElJ9VY+3w9LTlA==","signatures":[{"sig":"MEYCIQD47gKb785yHdfCY6WCgzf95j0s38FWMi8hVHN2yvpdxQIhANpz3IdzEczFUtLEzSg8u4su+GKAW3ucaFsTFR/hcQpx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRqfkCRA9TVsSAnZWagAA2egP/1d7rLsyrgsfFabs2Ty7\nZ1sUgblLiAZ2tOy+1+rmGLAq0bcd1kS3wq2hzrvpglmZegHCk7knZzALkWLq\nMDb4dDblBLE3ToI0EyLtHP0w5Zg0cPPR9IHJXvc7swGktUPldNgCmkNTBAw5\n5OAR6VHDQ9x+G9bNltAxJCjghlvWfx0YKhWkFfQywPfeyH04ysSi9+wc5WD0\ncZAAFVt3cID/jooaKp8uyxvvMlnxjDUWVFR2aV/T1k7kPMrPdnzOTSs6lVdq\nSw7mUPtZoUJXk/qAhkuq5DWI5MDyPP1d4Zo6lGuFRu+rHl7YKkumRLA5cHsQ\npNEJegOK7+RMlWFmt+Vr6+GEeA1jEBu8lKnZEiwihBQYxCCG9pPdobUpOBsK\nVWUx9PIwj3QRM2IKchWZrkZ/BBzJyJsGCU6ZhFMrxCWD0L7pQt3R3op4hEQJ\n0bi2WzD8nRaAC58xdILIMWSGfTrCr9Nh5N/05DVKXaNb6QmkWhDKKiufKO1/\nnC2GjrzOAqoXEQbtbBuaWHL8HePpdqeHcuZx8i2ojSzC3Nmn592oj38Z+swq\nPMaIBvFxcXczTy3F3FlE3ozenDntbQZx2Hq7nWIOYzV/6SkBEMzEZlQoOyLk\nuJS4hBfUctc15mw5P2jmx5flG+zPq+d+XEjmfKvdwRl5v7yzVHXorsoS6OZO\nLIY4\r\n=0rqp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"dba97895485d6444535a684d4646f1363954f698","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.10.1","apollo-server-types":"^0.2.10","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.10.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.10.1_1581688803532_0.23221665018242366","host":"s3://npm-registry-packages"}},"2.11.0-alpha.1":{"name":"apollo-server-micro","version":"2.11.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.11.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ca674e373d77634e8bf44ba513f6437f851ea50a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.11.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-ol5TGGuFY9iATGKfE+NaiGIfu+W1cibBpM2gVO8+rZLOjLLBRYjVwYuZ7IQwbxLklnDrZyWrmVXmCNl6KdOO3Q==","signatures":[{"sig":"MEUCIDcBvFL4w1pY7D3Q0y9e0w5V58AklHuyNROpNE3BLibnAiEApTS9ohJlhRSVIxE8u7VWBiaJR8fdPVVVv+nWbNhsUvs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeU+uyCRA9TVsSAnZWagAATGEP+wW15IJ0sF713SVaiEaP\nHQB0rcV92ow7dVjHnm4nXWf29fwML1oaBOOOb118n7mPJHc/GmsYx7B7oXv0\niNGIRVUcgVR0wY+cFu9IFEexoOQbbuakQyTdsIY/2n5/gcyNtGWFcFMatWCw\nk2NtRsMxwlpMeZ7vWn8jWcOkcI5CQ9wIJygKahw6iloDdsFzAAGSbjnqv46b\nkYm+OCdLo9cjkq1U5WEjhoJb3d1yKr8WHWcG9igu0/2dJ7cIPXR4iUApCpFR\nSgbIC+5qpq+DxWvz8rZQF2rosC7iDKw+zwvs6FQZ9R9EJEWreaG7KUHY2thG\nEXuvCiUi7+cVpDe+W1oLkOBNbGp2EqqeZSLgrMTEzaZx1np74DRBGZtUpoWu\nvgrfXxUaWE9Z18Fey6FsNAVeLY6UY7E4MjpbrCJBuhuyOyeiSEFzX91OO1aJ\n8kNRXRRaqNAGkMd+irW37P8jCX/cizk4F6YI0yBFfdksP5HLSYoc8NM8tBF1\nQcIbX8h4ouhpdjfp3zpQ6OejSgIO31FNUnzHR/KWdHUgfxPcm/Z6Ey7lHTCn\nOJ6tbjgE9A1fCVCmtBUvJqAExjQ6yQ8ScR5c7UiOhfkjNgZ0lFhWkW/zNbfy\nfSVF3P9Hs0AaEy+c/s33oiZV3y9S/fzAb3F+rC0zi1oDmImrvlX1UlpotFMB\n8BTM\r\n=5o+j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"a07ce0fba5a78d6e1a3c0a08dfda1b449e6c16e0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.11.0-alpha.1","apollo-server-types":"^0.3.0-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.11.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.11.0-alpha.1_1582558129595_0.9961126128267277","host":"s3://npm-registry-packages"}},"2.11.0-alpha.2":{"name":"apollo-server-micro","version":"2.11.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.11.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"22631b0a2457230343bc45bf274f4045a261eac1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.11.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-D2aX401dCikNLQCHCfas93K9DR2CnJCxSSkwXWv2L7DnCVIuWM4dRdH8KxwUGN7Eo47W54oJhMycjv0Kl3L/WA==","signatures":[{"sig":"MEUCIBjPH4/EodZ1MNEJeELd5v9ZxB6nC8G1YpHKRVQPT2frAiEA91I3adMeLRpSUszdhTwvtqfAnL53jI7TVHDBB47uB34=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVUUfCRA9TVsSAnZWagAAvTUP/jfITl+IcPXolDIrc9HL\nRZhANlw+uUMvH16Z04g90uJC9VupGJcsmxDbyiRP+yCX//nFzpKlDc/vup4N\ntWwe+f8j3xr+rj42JD9+zanRGNJdEh64+JIWqFshj2HQe183cvfReOyPk2Tk\ntzbPYLDjyTDUBdZYxd86HKbLZwPS3xFdLsD2LIzVcn6u5jcQL4B0o9nX1Idk\nGBJcVI/4WH+pfEoVMl57sY3Wt8pQvhqkESGSjKTM82AQo2dKtE1m0asAaf2T\npfVOGW98lDAJHvKJ0Gr/Dr0d5KjSuqaH8fSCymMuJP8wRM66tps0f9EtHp5D\ngW7XXM8pL4bprzcT14E279oKSH3q0a0DHXRO0TB974tZAS1gt1Ic/r8y3NJ6\nC01ZfIbYCyyGKX1W0xNyeROlrq/PehbVF+EUL2vV9WsSIiAXcL/nqFfMvneF\nmZ8IduslSLQsctMKnbYRiOk/ifFqD2NR35DTkIKj4hMCkv0Fh0wp9ZpmjtJ8\n3kj7azMwJzOFniunlkcca3E3I6EGlS2UVq/3kADKgURCF0NUEv2zttkScDRl\ngUf3wak3xwQR0VShflTy3vmct1LdloribQexnuuUSs2hDKqGMyTloNbwFKAi\nSsSIuZXXhVy4bj1YmRxUErka9evrAp4vdknrUY0nwwm9+X19eP0eZVA5o61w\nc8jI\r\n=krM9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"5235abdaeebcf2000b49172474df150d0dd4a247","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.11.0-alpha.2","apollo-server-types":"^0.3.0-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.11.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.11.0-alpha.2_1582646558433_0.33131289403470143","host":"s3://npm-registry-packages"}},"2.11.0-alpha.3":{"name":"apollo-server-micro","version":"2.11.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.11.0-alpha.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"19567daa37abb06d1214fa0b6862e84460cfdfa3","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.11.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-VegJh1jliBmJTEQiHJOmbqia+TmUnoukWyrPimZYJh/RkG452RTIzc1OmZdfKP4zzejwHxBywKJZQKiCj97J4g==","signatures":[{"sig":"MEUCIQCU3kngeXM0ycFMwU4xCryLEWztb2lW7trT++ZkqGIZjgIgJNjRozX3uTDQOGvncADzaiSRNqJMU+6Mic9v8FFr7II=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVUtSCRA9TVsSAnZWagAABzQP/jESM+06OLulJLOZj9HR\nkbQsrCGB6CqRwO4USfI0b6jVCpb37GaRqwGGTYM7at5DtBFDcj64kXJXVCl6\nM6ViRgeqxiSnaydF6/TSbWweuuKF26ju6ZmW1jMdEPxIL0NB5LOfs9/tA39M\nKd5C6F1IQEShfRvoUgqnrC7k5vKNAdUU4iihj/ZYgIGxFW+iLS52tZG84blh\np+rQ5NrnDZ1nA9dZSC7ysgnSOK6yLCMnvzJPUgZqWvph4KiRKRNLdtLIAo1W\n7LmMRAgtNY5ELbfjBwE145KzZV+XOeV8uOisGwx1BVo4sm90pI50HqlogQX8\n+4IQ9MvjrWIOn51xetbLwgFm4gEkiY1kogya7IZbgZ4EEW9EDuGm2YsEAv/o\nUCAj9vjffkv9j2poc0dzfQ4PYtkdLdx2q//bm4LDMCTSQmRM1FM0zV7z9uaL\nUlj/xcuLfLQQesNjld74vVRBycuBD7C6wR8FmNHIAqjfmMJX9eG2XhXv9GvZ\nX+r+CYSlbQnNihTirDo+rTVia9mUdLfnIvhruQZjby26t1cBfkkaI5n7GHm0\nHJDjK17hnjmyWtb5L7xLT0DpEjkVzQUPwSV593He/cjXBH0IQ6IviNMhcFPj\nRbQSCwzYfRbSdMLREVuoVSqPt6CHhL0MCUOheuZGWftM0bGYdryGviy4EmjN\n/UlH\r\n=TcFV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"062e6a3a76f00c6f9c5253c1db00f77ba4a74ae4","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.11.0-alpha.3","apollo-server-types":"^0.3.0-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.11.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.11.0-alpha.3_1582648146221_0.3468794209055519","host":"s3://npm-registry-packages"}},"2.11.0":{"name":"apollo-server-micro","version":"2.11.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.11.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"78e5b07863026bfcb5749a8f1c39ed1a3749b265","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.11.0.tgz","fileCount":26,"integrity":"sha512-zJOKSnBjhSSCwFu/QmvwGu0pc6OGEDFIvRbrck+/QnM4mq5OEYHYd3MB9uYHtcjlDMOSMyLBccXYGTTEEZO4OQ==","signatures":[{"sig":"MEQCIHhmHPhB+nCHQ5/Hp32XWv0dMkfude7jsyfy8MUJIEWHAiB+aDR3mLVLYk1PLxma1fsnyPpUhwNcz3KKt9DNUz5gyg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXpcVCRA9TVsSAnZWagAAW8gP/2GfOU5gptbnVovIGK8R\nN2TtlzdXB+8su1UQbyoWqcXvfd3Rd5NJ26Un3NDvI/lszKxUz4DXOB86OPcJ\nkQHOeZSDJDyvaWcRi8t9fzHQhyCi9rdhzyVp54q6PxJKygG1F4h8QEeOmV1q\n0dAJHQv0+yI/OlvwEIhc/ljm6pe+PfS1EbWa7xTbnwV+byZ0p3Q5/feLDNPV\nAAYXDBVXxov9sObJVjOHbW36/Z6IaTOp9QW7aXdPb7d5MC/zwJpVnxLFqnbh\nd3f/4Sx4fxkjQEwePWGpicZ3RnaxQ5VhM3JmTpmzc+AOzVt5ED+ifU9D0tBW\ntYc2lofYnl0cK2EWGwIG6tchC0gjF4fwU4P21oEZbGBYk6zWJcAnpOq95Sn1\nczwRiKyEvBDpCzFFmwbZQC1+kpSNWnzvpOcH9dW3oBNjq84RQ/j/1VIrxqVg\nIxRa1neRoQl7vdSUF8kvE0/p7iEpV0ieoIGIY3vMtwl/bbQMrKTNt3VHorb8\n7Dcyms4FTu31wGvJvoYqixw8pz169SNOpMGjWaos79AlepezGqxCsYcwx4Cs\nhdAn8kPolt3t+i34CKWhae4uuEbUz3C3Ygvt5BHydEDLvz6MTjPdq3rGMGI1\nrYN3grkIn1SYdQjbN76tIejY51vmtPQrT4Q3GyEZm+muzatWSDzEl6yh/p+P\nV5tW\r\n=uUVo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"056f083ddaf116633e6f759a2b3d69248bb18f66","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.11.0","apollo-server-types":"^0.3.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.11.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.11.0_1583257365397_0.15722431067937714","host":"s3://npm-registry-packages"}},"2.12.0-alpha.0":{"name":"apollo-server-micro","version":"2.12.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"7fc791e9c81d03cfbfd7592e55bd1ba82fad8a0a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-JnbgT3uC9u8jwdCrM2P4l4KGdfvlLUms69197Z3tr/9O74kB7OdLiIVp8LT0yOcanQReucKwgW3mFETrgQOaJA==","signatures":[{"sig":"MEUCIQDlITh6VrTbO79rB2/z1QNgoLhQyaqjM/wAFItzPaBWjQIgSH76aQpK5f4fbPQQGmo6yxDLQmvE/2ZOXZ+xypEb2qI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeb9gACRA9TVsSAnZWagAAHiMP/1SzXA7Ew4Z3hhbllSVN\nJWOX0eCJp/qXGLUmX2XB4SlkWDYR3r+JmtH0YVtZjZFAePhoV75LfUS5KUpr\n8SKsUs0N30R3H/e9zxJono7qZiGw82NShFeTOCanimUAH56VYQLFjdV56JZd\n6+Y75UwjK3CSwF4/qzTMIRKA0PnSHxsBTiNi07BmgvIWNKOAwI0ftZNYxwA2\nDnUB1xU/UGWpcTZUi9wt/QZW+wbSqH2MF7i5lvY/bjCfv9LP2bEQ6ueVeeRi\nXnVeaYp7cEGBFeNpkE4wSfrXdDvFVRXkpv9dPX5C1xkuk2nCiIEQ59D1NB+U\nOhPxFvfCAGAPqFJ9ZuAKVfOd5DEkoJXYg8TaKZHDx6Q+ARTnefiQpwUY9/yz\nxt7ucATh9pLR4WQSYFTILzCCQK01dCxC+DpynqmCZKGI64uqZBhWOJJFhs/r\nsWge2+YyMmIQqOvOs5agx205rJA4Y0pmuKH9yhyuv+0EuMikCN5v7BFsE5BV\n/zLDUZ7uOEV0r3ox9FKcEQKuq1++TspWFQfZ/NaHANwz3yP9ipAW5XvubKVD\nCUbg/y5Zt+SY3LCpcc+XI40EwY/DOXGnWoAfwsZIQ7ENm2pEQrpwfs2l5CTd\n/z4kn46ikDT/FYCB5vJnk9mrbXzWYbe+3KG/JMbDvX9yYXelrANu9h9FQOlL\noVOm\r\n=26j8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"61f912de18abbbacb2acfb20a248b88149ccdf47","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0-alpha.0","apollo-server-types":"^0.3.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.12.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0-alpha.0_1584388095579_0.4751538730693672","host":"s3://npm-registry-packages"}},"2.12.0-alpha.1":{"name":"apollo-server-micro","version":"2.12.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"140c0857fa2252a55f158c1e8b359d87be5ee3f4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-RdyYo0LzjzziAv/KV5eL3fhTeUe25l86gyNvv2H4BiapGRwDt32hnd1L4R7sqRrDpbYui9OQugnRh3jpZrzsNg==","signatures":[{"sig":"MEYCIQCdAJSyiKZWRPQiv+jF/oxOhAyBv7BX/JQzlCT0/IHS1AIhAMYIZ5n1vFfJglWT0sI2omCDzdoY3JNa0twFuo5TlX/8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecmO0CRA9TVsSAnZWagAAJYQP/0Jh1yzhnoyAjX6rBYMd\nWDge0+CiB1pPb3DTf2GhNt388sXnNvZ0oqFN25vDc5hJXsY/zWlFQqWxobHI\nQZzwQ0nNUbDvIMK/ymnwG0K1xPLwIQFcL0x5g9/Gsa6hghRphqrYTZ6kINK5\njLhQWTkm+QJzEpJdAl/ZmLK/IXTFnGO++SgOlLr2GqW0ey0pfWmdJrp2wXrs\nZaeRLr53tPbPY0DQI7gyF2CLloOTsoHscGJ8YFo+cjF9/XPhmhRChbtPeNLa\nk22VdMnWVzf3QqNO1NbDGj89j1rmZaEuXPMkt6L1B+0Ll0VFjNcIQZNZVgoe\nzpr26uaxLuzj5gN33zYebRoSJp2qjzDC4Jd4ng/3pj6gl0SRsGu3/N2aFkHu\n/QMRgjdJymzBrEqOaCdHE3fGPO9b5i0hUFdgSZXT5jVh5CSCwWprhKMUgHs2\nbLv9rW4Q9Diq0dgPNLrhZxDSWlOY8sVbB89usihIMb74/1Go7TljCnsivo+D\nLzrV6EH2h2zPV0JN7YmXBghR6uA+pjn07nGcg3aJ2CfMGX0Kbpr1gJGYK7Bv\n9r+kpIb3SjMJ1nrbu0LDQnh9tvXYU1nwfrjOayR+TzQMyIDmscdO8h6mcLr0\nUBi4p4cKCHAawUmzULqIbHJVNzE+5SESWO8NlXW2WnoBEN9bVrijSHecLZHv\noNpW\r\n=U1aE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"7422d70e19576f7e34aa289c535325552881a17f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0-alpha.1","apollo-server-types":"^0.3.1-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.12.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0-alpha.1_1584554931921_0.580044703539901","host":"s3://npm-registry-packages"}},"2.12.0-alpha.2":{"name":"apollo-server-micro","version":"2.12.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"86edfa3b6f5a0c08bde0e7b03158cde65b36ba8f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-BWavOZMI5jZt1zLhz2mC8S4JAZJvVBQ11HirpcoLQrVOwZAU3EVHGI8mvuXa+SJdJnELImZ29eLFo7D505JLfw==","signatures":[{"sig":"MEUCIQD/TS4CCnE2j5alQVn0HQ0n1TU1gexsVdIjjr7TxKvXXgIgByfC19FGApi2s0Dmf9b29ZqOXMcIAQxIgSsg+uqoP3Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeMpwCRA9TVsSAnZWagAAExEP/0Qhe6xCNhnIAyWnqeB2\nXmyp/ibJiNvOsr3iSWVxfgBO8UwVHgZ5R1ro8bKBYNmaIs9S2iZlG3V6YbFD\nO0KokGwepjR9a4bYj8j31P90sYMcnZ3qdqIAazvBXldsq4CxDRYFwWNKurko\npCJKL/S2Pp4cJAjzis5yNtt3FCH4prFYqA7SEvy5bnHBFYbhTp7spBvtgfI9\nT8mgm2qWIWrFm8VdrfLWT5QG+mew/vTE3Bf2diwfZj2E4hgHr8AzHM63qISP\nkB8xv8uFsttKm5Qr8w4fdPbRJLYuORRyZD5nafCM6ei8tBAaG/iMays++/eX\nYgQdz/7qddillIpfBrLR4pAY9a03CCDQGC1WIdekAerbkO30WIipyafBC2CO\n5JgpA5YyZbRTUQDUt1yrTY5xqzPm6grYtphxeCz/+/5iOKoo+Vf++rbqyR0p\nLEGYtFJHM9FYszBGP9neoxrQSFZ5jeyjvJHKTvN2qNMyQuhBIkxOr7ewc5uz\nKM1gicnLlaDdZIKGM5A/te4bCMO+KT6aMJnn/aUUyU7y9y1aDKGFAK8Mj4Ub\nYv4ULJKzFicPaBDKE8OcburVx4WWlx8pG5gKFwHaNWMjFgwa19JbR6ZCf3w8\n3CBEr6qXIlC5KF4vlemPuWb+jwIdUdfU4ghEswHk/59WULP9HKRkBihm22Br\nvEaf\r\n=R/To\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"34c707246f8df95a1916aa59469e78fc3144c8bd","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0-alpha.2","apollo-server-types":"^0.3.1-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.12.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0-alpha.2_1584974447704_0.06222700399176406","host":"s3://npm-registry-packages"}},"2.12.0-alpha.3":{"name":"apollo-server-micro","version":"2.12.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0-alpha.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ad582533d6ae52db191a510f779588e1715ea0ef","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-UrBViZ4aep93wSHz3J4uv4DrmNkgOEp2SnNAuIX0hKaeJ6HtfFuUqUoCW1asgVqLhCWq+9/buKaryH9gyslHNQ==","signatures":[{"sig":"MEQCICmCjgUW4f6m0q+hLXotg6HV+fcthnhUKtMSh5jcqf1nAiAp465LRwI+MaszFQPVkzfJfbI/okfLX6zLt0IWah0otQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefKqYCRA9TVsSAnZWagAA2M0P/AgKo3EnCQZb7OeAWuzP\nB2yqQq2diDdsOEjEjni3Q3zWDrTJgQerJmp61ksAwYaVsZe0u40ppv6ijdB+\nK3UxoZ7h90wS0vzfMLCSkaIvycHpcCpx8j1rWkbeh1fqHNy7OugMTFMzWh7F\nx25L8Mw/KL504GgPoTEa+/Bb0Wksq3vDuqKJsLoI0jhp0fLUSfPOtPKiBZ/4\nRkoBjZ++Y+gSGqjcgOE96B7szgCq/6DXRmgH/fkt7+zK9Z3NJd3/pn18MspJ\n09hpo0gVtqYrkV8pLZIeVFy1Q9ltK/KlNdcfJPdiTdQtJOSs7TKhNd8ZSCZ/\nGqxMhMLjs8Oo8xXuELK79eSu0HGGBPif8BbWAIJKEUwOEoxNLZ/fxNCSgEFu\n+wFQ1BpMvaxgiYun5fkAk/p6kOhdUS6pvPowaSHuaP15owg+KG3tyIwwlLD3\neFxAlJYZauUGSJcULlRoWuVW6+JlY0LkHlOE26TAKXZ0gFqemy8/7KpMqA08\nj2QxuJYKtasSq5GqKKdoTYBxxsMSy/scCvUXVYcI9ucvtDEliNwj3t6mM+f4\nvM6cRFtbi5gDKgQPVULsJX9TVF2YlHu1pLsKbBsqUyIj9E7zNLqP+lxbBiS7\n/KMEMpWz+ad6niYhi5ETMgEyPa57Uv1++OzuVoax3IO1T9OOYz29c3TqK8dQ\nou3b\r\n=hWOk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3eaed42548ad524129601263b4b2d8e3d7b65d27","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0-alpha.3","apollo-server-types":"^0.3.1-alpha.3","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.12.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0-alpha.3_1585228439599_0.7852442937803896","host":"s3://npm-registry-packages"}},"2.12.0-alpha.4":{"name":"apollo-server-micro","version":"2.12.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0-alpha.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"931af0451dee94489dae73cb8307a77046ff0617","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0-alpha.4.tgz","fileCount":26,"integrity":"sha512-rPWroXGgoeSGvRCAt1OdCmoA7S5ViniI4swpQoTk70VmGUMwIJtGizWI6bTpfm12DURY6F3w+xxCL/448cO4mw==","signatures":[{"sig":"MEQCIFWeBkHHUO0+4xSDWD+ynxm7gWZj5S+I2YCqBco8sj/bAiB12Kcz3cIyS4c8DcO36Id1APCyIRPTH7tJB27coh3CRQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefLQTCRA9TVsSAnZWagAA8BIP/R90+Uqa033Q4eUH6dQ+\nvYu2JDyF8MQuQ/vTIpDekD9E8kHIUmklS5NOP0aIX3PlvBK/pvEnsLWmjN2w\nSZDHRo/iudGnoLWzNXlvJQmxQbDJte9B6ruQ68y4RVtIT3zxHBHQjDotfVgL\n35ycUf4l3sgcQ7tO1rkZVu3lsqUuuHo3bGMWC2FoB8Sas2jeR1xZZcH7CBbI\nIZXCrRTXKFsesf6sxufVOgXcFvQYfAuCnIxI47DuzK6xD78uvnpRVFy3VPLV\noQnht0XBmvmteaK85HoWP9XmqmUwqdztKMtB9L3m/R+VRirhOR8CYJ4BcR20\n8vsdJamwDa0zIodbTDCjFykPzBO8eL1mT7fVKvJgeL/m7DJ9Ij+9XfeGu6Tv\nND9TNkJLt6V3QGocVOKtBvLui650FM5IxOVhz+uKDkWe+neRUHpC1M4ti2gu\nb4Ycu6FBASIO/OIqjHyLHQTJWrgGWPQVMNFbQ1DvmhtYD6uPglq1LXjtr7b9\n9ZdPU50N/we9LBSXR+vzwIBdLeCbuCNgkCFEVrAXWaPhx9tqOUZ4bgSfWUIM\nd63YOfKIQ7oO2zIft3RqPypRXfN/GIputiFpuK0e3agc9N1ntpySGK7ZnQ0O\nEjk72DqZ9Hg2khMgDNP5XubVp/qcveOuig1ZDu/DaKkUi+cGgq+ayKwiQEx1\nQ60Z\r\n=WbB6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"a6189b32fec3f1ea1ee717e59d89c8137797aa50","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0-alpha.4","apollo-server-types":"^0.3.1-alpha.4","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.12.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0-alpha.4_1585230866321_0.06990503630019451","host":"s3://npm-registry-packages"}},"2.12.0-alpha.5":{"name":"apollo-server-micro","version":"2.12.0-alpha.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0-alpha.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d23189b9bbafa7370e0c82fb7d8bb25e88ce84ca","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0-alpha.5.tgz","fileCount":26,"integrity":"sha512-iFOjnLfLj8mmNxHsYqFqkju7R/Zyint2dcTlEa2BPCLlj2e0bQWJYQo7AZ91iGIwcDDiqdZEZHQ/9VOKhIejPw==","signatures":[{"sig":"MEUCIQDriOU4+Rvh51/UhTP1kVZkJxEKnBxwgvzPJTWVnxh81AIgStg24Ik4lqVjsAMeESFzoiUlzV3mHONetiu33olOD2g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehnDUCRA9TVsSAnZWagAAHmoP/2D7n5608Zpob7CZ+GOc\nUkqfhmGK/azUdNPfs82Vy9WcpBzcpC7b6MAcJlPVMkF4Ka46VFHfIMtXHls3\nPVevjewC0Xr6I2SKiX8BU/v6kR7/cTVwiEP/x5giOnyUl8kvpWHl7SjuYrjb\nbQFSohMc32J7KOALTIiFaY+Xf0ZqYDpL9RVyRO4TnLXcBGPMVv4jk89ab5uK\n8wMt/FVlQOi+VpfNpRYqgLWauqAq+kjMNJab+2u01W9WyHoOLg7E1laniFa2\n26rGhxnnf87UTOvItkPmoATVMcVcq1Xd73ew39ujimeeiFMyvKgoEcwLo6Sv\nhrWbmn7zQ/eKVDjx0O2sPwjDhOB7HBapnY46xabw0egSrnwpGqKXcXB74V5K\ndFS6G+2h152lKf4+LZu8q+5FqFNbxFpEoVqh/RvvqHUotXWR6gIk2ipcUDbB\nz0pi/SwuXi6nXN+PGLBCKVabZGukip0X1cDWTJ8UBNWRshFFw+uy3VCmrgUe\nHOu+aczowGjE7VS3m+kf4oD77BZdqOIkljyqq/2IBCrst+Onf/4uRxA1/Zil\ngWZ+9XihMVsSJrnvtQcWoh5nbpd+RIBuicO1lkTmSxtlPac4ivyum2C/SIuL\nzEBl0Qak5nmn5JBfCw48bZdBvGWP1+GG+fbdhq0+b9Z0pwAjMFuocfHndE7N\nw1Kf\r\n=URFW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/apollo)\n\n\nThis is the [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"c69557b0e94e15ab2ddd031ec46f20f58cbcb96f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0-alpha.5","apollo-server-types":"^0.3.1-alpha.5","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.12.0-alpha.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0-alpha.5_1585869011926_0.7921115420890064","host":"s3://npm-registry-packages"}},"2.12.0":{"name":"apollo-server-micro","version":"2.12.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.12.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"18d5363429e6c55be42b25bd8b3c2dd898523b48","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.12.0.tgz","fileCount":26,"integrity":"sha512-mk3MPTEcRzsFSn1WYdJerXsDv1+tbPc8H359lG614XTpKTqp+sk20pZOIq4sjMOgYx4I7EOvU+Da63KK8oc09A==","signatures":[{"sig":"MEQCH0YR5ht0Vod/mxQtruVT4/PgvKNnhob/Zq6S5vl8MQ8CIQCpAmiUWtNInc6hQiUrO1TvGsnwSxhfnfqmZIo2/8cd/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejMg0CRA9TVsSAnZWagAA1vwP/20k0yssrExT2b0BRxs7\nbtQeFDQ2FtGV5nZJUXAhxz3KK85J+wm6xixnclWVkCGWdLt6n0lWmU/69+fU\nke446g4wqltFOlp+6qjeHTziwYfM5ugbjbbSEH5lEK+z6athH5f5XFU7f8s6\nIPlLzrnPtrO1dKG54gISMZC985haGZkMd9tiMQrScIM6evPQgj6l1o2A9Rx7\nZJLLVgSRTAmAClw7sC7Zk5BvaLCRRpeu49Mt0cOsNqaK5Ip52kpOpFsh1b1D\nT7o7KK8lQCy5L2irB8sVI50yyICX6WezJoMFd6lIueDc3QKYB28rBF5viCbA\nDTXq7d2xIfrp8eIEpKGI+1hK+r+sj9WbWBkMTsuH+OtFYqtrIzO8h+JLfTOs\nUEkxRqjGYewWBlg7rHGrhKQtPUvspkdQwiEKr6LabrVU94x7r9R8QfXcmfOx\nsAqZz/Y9YvPKBWo4NXJhYueUBv3XqSZygsatLZiMJUhrVDL+fCtwEBT48cYx\nV94/d5NI0VmP+7D1DUbS/CiZXk38vA5S2Hd/mqAO2jOv2gTqVH13Samyy7wz\nVRym7UOKJh6uL7nbAE4y+cwcHPKngGkH6BXqBEeMCLLTWXPE9uiABhATC8Bw\nMu9KWUS0E7TahH15P1M6uXnksKCERLe7ld/X9fOFo6Tfko3MmNTdDIS9rafM\n0G6x\r\n=px8g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"71a3863f59f4ab2c9052c316479d94c6708c4309","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.19.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.12.0","apollo-server-types":"^0.3.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.12.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.12.0_1586284596111_0.888290497436033","host":"s3://npm-registry-packages"}},"2.13.0-alpha.0":{"name":"apollo-server-micro","version":"2.13.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.13.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3474740d0d1a4452f88167ef1b144a825a061c7b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.13.0-alpha.0.tgz","fileCount":27,"integrity":"sha512-vAAQqCyVrCbM7a9qSCKqPQnEjSsn85xj9ZBbhJTEHqUjMI/ILFbtUnKrv9YjT/7xTCGR4KJROMVFlfKgyepPXg==","signatures":[{"sig":"MEQCID9RYq/cPGY2vVfmD3o4SebMI+3kpjTmy6TzvVNa+SDkAiB0iC2rEOGvaUWuZC2gTPVj1X96+3EBdNJoO6jwOqQu6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekGNACRA9TVsSAnZWagAA2lgP/0OlxCM42HaL1NmBvdXf\nzhmNucCAWvW132rUMTcBxNICKzpbgR0fFVEZFBmAYDoaDOMFzCE/5ajs3Dcl\nZNn9CrgnYUbqgbG3vPFxBrtoQvIWoHkbCaRILMJuJL04oQar0f9ps4KlhVML\nk3xCBSH6grR6KV2weXAeG9fgTxPWAmbqK6pxiYwfN+JLcKly+NQTDY8KMm5p\n0ZNuSzY3N3XGT5E7jlAInwuhxBxYVJM+WfQks12poVUR6upzMePI+AFUjFQ6\n4bFPe0zchsZl6iLr02/6IbhLQd86kQq8lYO9DM5kBRnBq9JV55I9/2GH+Csn\nw3PFmUNyqRt66TlppvYkF7okzrHh5AtUC7zmmo1rzrcYhue+son1qxzAfX3j\n4ByRkGCo/Cv/KvR7Qy/ic+zIJ6ishdSjxLHBk2G8pbateTe3YdxyKX/0DA30\nIKudcVILfNz8r85uzM0m7zFSWi6aFsYwdf7FypvfMh8FNMKXU6nUZXRHXvJo\nc0PwKb9AWtVK21Bv41xU93LIyhcSdVi78GCJMtWgfUKV227Ifg6NfrI2OJqg\n5MD03Ah0u4MH8P6ZYaRfeMJ09X4QmTwDl5fBYZP0DWX5+Y7wr+NBraJg5m1e\nBoPcqMYkDaLWngPhAbzJaDlC8dwJbB19JodH/sqIweBawqiR2pE+wyajT0yU\ne23e\r\n=EhZw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"e8266d6ed37b1072041f9d6d9353caacdfaa069f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.13.0-alpha.0","apollo-server-types":"^0.4.0-alpha.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.13.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.13.0-alpha.0_1586520895695_0.8653973500859315","host":"s3://npm-registry-packages"}},"2.13.0-alpha.1":{"name":"apollo-server-micro","version":"2.13.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.13.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"faef33aeab8b508e8b75a372a44f4febec789401","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.13.0-alpha.1.tgz","fileCount":27,"integrity":"sha512-sMGYeyPZsI3Opx8TAg6oMV0/fAOFz9ZO9lfAFWNjQmMdT3hFdMLi7V6CQBj5ohXm/nzQii5eO31wYDmEHLwBHg==","signatures":[{"sig":"MEUCIQCxpbScJy8LuFDv9iX128DiHOQTB63uP6x+zD7uU3x2dQIgW6lT19Cc3vU3/5lgKOZAJfv88poL86lxUe1Ldv4341k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeocTMCRA9TVsSAnZWagAABjMP/icQ/PJEOMsdjGllcaWX\nxNIUJWNtu9UfXJMfFaaTjo0ED7ySzQGQFJxxBOod36tTXvgYJC/9c0iDyIsN\nIFmO0/4iRtvVjNyy+yPPRdzIfiqMHbyMtiLfhc0VOpseP4uViq8Mz0XUCcZw\nyqtakaKXx+pq8Uc8vTMRkN5MvvYKCiBAVZhN++ElssdoX5ZKOXwSMs7ZLMwI\nGDvdpGLfdKi2ZvszYvNbXH+gNWsXzqlv1IAi0s2i82hwWJiC2Yv7VOJAz7P0\nITIrEyexWU3U9nVRNqVkef7LhuSJAlVKoWPWfzZI5cetzgRAGOl+6ZIZMY+W\nNRdJt5j2b0xxTb4flA4jbddzQpiBmHcDEGdM9tgeiSwhyWxzTwKeYTJPxLcv\nNqO83xWjZcluHDQtoD5J5FGvZVQkeJ/wpuTIcDSXcrJMPEh7ZEI71/H0dnJ+\nj3N5NAhgTa98a8mzlkPJitNN0u33TNeEncoPLbarNnnt/WWLlHPqG/rxLXn8\nX7YdJPlw2xoQPqEzCAIAVA/+gKD6eMd+U6XiamLFMM2hmQapP60yaYSjoX0S\nc5NVelvs9rv3m6U39ZtDnrNWQTUpI12SHMCuXumwDc+GEhk49LkVb0yS4wDJ\nx7krgWN74lgZbD7UFnNDopHbtNiapIvTMnFnc9bD/62t/eOfDcdTr4DJpb8A\njO6c\r\n=6Qaj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"0c73f3180a960ff5f94ea87466a7c5aab986a03e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.13.0-alpha.1","apollo-server-types":"^0.4.0-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.13.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.13.0-alpha.1_1587659980078_0.711888106806916","host":"s3://npm-registry-packages"}},"2.13.0":{"name":"apollo-server-micro","version":"2.13.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.13.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c379f6a6e7aad5a69200e59664dc1db15de4b7b6","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.13.0.tgz","fileCount":27,"integrity":"sha512-sAm3ExBBJ2xGhjbBkmd+crFYji3/3D/I+MqDbrv1ZUVrRIwHk4VZkcm1g18kpPI6EWNjy62eTEzvtb5U6yeLWw==","signatures":[{"sig":"MEQCIHB/4imi20pDBmXnMG0/HoPy2/2f6ZCQzQpQEuK85r4PAiB5BBtFBAtIVCC0q/gT41Zd0B3WPZb1PmmxWEj2qHtC3g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesCt2CRA9TVsSAnZWagAA9roP/jMCacWLal8VYH7P4FxU\n/m3r7jM3BceWG2s5A2pwJSIj6HFeCNtn6Eag3Mnzx0jBD8H0ouNy130DKrtF\naG1F4KeArafUN7uOC1Layx0MS7auYg7gQbmD9J4eW1nZQf5YKF4LqCzRWAON\nEs9GNNXAmwY8fRvxHKey0SdUoo9sFMzIbHMMhZ8QhDcYWqxHVXJPm/n7XEi/\nZzgCldWuECUBEBpUW7HxyFSOtEScDt34yRLi+lYI2AiVAmm93ZWlSMAGvPbx\nQAttu6RNQPE8jXRQM1lFOFboliFzjF46JXaNI1Z5JwFrhGQiNtWxdlDOKSK3\nJPNMutcFl5LnDvLTfRwFc0dtfDSU6hWZ0LnkwpWGYwIKuJhR/kr3jlClCSE9\n1NBi9vNAP4H+emq9hNuA0UzI1QDk2AqB8brpDlgOaYYB7QiZVnCvVTzLWOkq\nusEfTgQwDeR5eWbZ78hAUe1Xohjjq5Op8k4joz2Jgq5olTcXZnJv9kLBffcG\nB1w1FBnvwUH3i0CPJIDqmS5GBwEtWx/qfoTrN0p/SD2J5tJr1GKNGaVcVyGv\n1tWOSwR/x/yPGU7v2THoD3U0n54vFSJF07UyYx16XUggqBF/sSNCdEkJB5VN\nkeEpkjBepW5E30huIYtKadzTAB8ukDKmHDk2nWWEM1wdDIDMEg6qifaOUQ1K\nUKO6\r\n=yzA7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e37384a49b2bf474eed0de3e9f4a1bebaeee64c7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.13.0","apollo-server-types":"^0.4.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.13.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.13.0_1588603766461_0.8132144774245016","host":"s3://npm-registry-packages"}},"2.13.1-alpha.0":{"name":"apollo-server-micro","version":"2.13.1-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.13.1-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"527188f3402a2ea6e96fe7169767eaaba4bb0834","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.13.1-alpha.0.tgz","fileCount":26,"integrity":"sha512-WyZdODsV6JO7ZO8/0Is+xJsmraamZINt42gcIcq1syOHLb2Yo4Sj1PkSz34RbxMKTT4qk6sANqfKVgPAeVLV6g==","signatures":[{"sig":"MEUCIQDXswlxC10qfQpFu8oO/K3wOC3G3lPJZLf+1d0kIPsHBwIgJ72USVvVRHYZDY9ve0qA02/C6G74ROtNq6yCW+BZuqE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetbfPCRA9TVsSAnZWagAACtUP/j1LxfN6lnxFAG8xZC12\nIhMWb4aoUjOMucj7vWfw60fohdB3gKDiTOivcxc7NA0Zo1r7fzqlCX6ypxH2\nWYgNHWL1jxdY0FqLoERlxACjvvYVHbLLFaHjQKjZ/accO6gG73cTS0vvwsfp\n6ZkXRntuKSxNWJrF8c3Gu2TT9sJvdFZR2cFoqNjySk5uord8svW8CR4n9nEA\n6NCXtOqtcWMFAEaEoN53GglU9xeOuWVXfxfG5myKbx/yE74up6nt019ame1I\nc/GR6tCwz1Y93YgRS7B5owPoeiRo2ITeFaLyys5mDoLg/tYr45A8OfWsBvv5\nxOxtGxLGk0ANosZWZ13ctNBkOEgLdp4QIwb/a6dKZ5kc3Po1DGfgYsQTeu6H\n7gqJJjgLI0qSpcHZ6dDxHl6Mhmvth2A7ssxSSchvnFCjwnC9zx0KYQuYNM9y\nP2ndutxaVfQPMdhUWbbss5ra48TBkN7EdfOAH+Ayon4NcZ9CW0H7/pK8tgQS\nBHCT1d5ANPBpJBbYwFqjMsUyklAbatMYMge4lYk/ApXOQ0bIzFR5sZhrt/T/\nnb5s8pIXhRdTyaxTBzKRPGUG2wDjowj7ucbKp4mUbCSbnPcC+eNaJ2m0bst3\nrfun06hjfXb8RzuqNAPMKSIsFmzARA4i8EQoBVoxkia43t5HKYjMq/yxsl9C\nLHuT\r\n=Wog9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"626c4b6505ed98d47855712a568fc4eba9d8ff18","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.13.1-alpha.0","apollo-server-types":"^0.4.1-alpha.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.13.1-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.13.1-alpha.0_1588967374987_0.25026198502421204","host":"s3://npm-registry-packages"}},"2.13.1-alpha.1":{"name":"apollo-server-micro","version":"2.13.1-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.13.1-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"16198b3b90448058b5453e9d1dc2d92d6df8a042","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.13.1-alpha.1.tgz","fileCount":26,"integrity":"sha512-PB+o1p7hpK000vSZw1LmhqSX0zkyDGQklzR9Sqjdyw3IKLN3vRaeVjq87RcswO0E2xLYncCoEWf9FXyizX649g==","signatures":[{"sig":"MEUCIFaRp6+RK0rd8UuvlsCHaA9/HKNEeFo379wicit9fJOWAiEAysy16Zk/C+2wTsFMoxsbQINxLx+a5VyHsbepgiYy+Gw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuZrlCRA9TVsSAnZWagAA5f4P/1cV3ZbwQ0hLFtBL4Bpu\nIzcDjZnXFb3f2mMq2QbekxEwwEVHAbGO4bji5Gne/dmo2tagGSLHlAK8hT3J\nTM4iRVlfXqDmuN3BAHjmmumzih1KDZh3wln6tHpaF/DOXWwQK6W+2xgT/UKk\nPx10crPdXeHeF6+mKQL7+XGtZwS++ta/0GNTL9qTTiu/lz194Gy/e/lGitdJ\nJM4wnvIbmQy+Py8fCqhwAs1yKxQsNeEl8W64Bs9Hn/hdNLzeGY16TLVlcR3b\nq9Cups0Ldh/VZgb0CL9ydPwt2c51IINaM3yyd3k6ySyLgtaZe8FlFz/apw3k\nry5rdoDgRgZREUt6kyRJiykMfcL/gv2G/Kboy13hjw4Klk8FE/gq4oLImcGY\nbrPTbdcFC2MTPZ2tLC86s1Rox9HiKyK9VpHCEuvVQdZBi1FU2vH9THh5IKae\n1ybQy0AXOllOtd+OEaA1mKAwsvzzn+C7vmvcOyOTuvSUCLORgBa+yq9RHhPS\nDLF16G5cAPdQPANGBoOuCXJWyYMcWa2QJbx0AkHCjrOhx9RhWuB7HyLZyGDD\nMaozD8iOTukESc+Mfmvb+Qy+PJPuqMnczc344mYp0wKvKpyaeEE+x1IrbxH8\naKJfhkNhVlVDD05Qo47FYNzBMzy4HR/DrgdCJBCBJfmdM5IUrq7X1O69JxpP\n9tet\r\n=9MDK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"e71ddc404865cfc8519241ed713254a3a73bcc69","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.13.1-alpha.1","apollo-server-types":"^0.4.1-alpha.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.13.1-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.13.1-alpha.1_1589222109452_0.52229360493938","host":"s3://npm-registry-packages"}},"2.13.1":{"name":"apollo-server-micro","version":"2.13.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.13.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5e9e7fd7af0640bba9cf9f9423f44016dd64125f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.13.1.tgz","fileCount":26,"integrity":"sha512-JULK6EBnwb8uvtgwwXPF2cFuFn/2Ty3af/AMOHbPXMI/fbnjK4C52zRGjxD2S39xWAfABOniot2quppXflEv8Q==","signatures":[{"sig":"MEUCIQDTBlcF712HVCqYw4C0cw+gg63ebT/5zx/ZulNH+TJktwIgVF39cLrZ/cU7hFf4zqB3jCw2wV0WqOOjvYuDypTkvTs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuaQ0CRA9TVsSAnZWagAArogP+wQzt8FBalMutFDcuG96\nqIyOoqE6mwm4YfxCsucJZKXOpe1/GDaqk+oYByyzA/KGMwhQwVWwrravdxc8\n+Oh8TDN7ZLtS02167wgGJ0SdA9M/wBWMdlMXrJHOR+Iou6LGTh2JcAw4uJMl\nuncuvh1yQPK+0Dhr1w2GH+S2GmPhM90xKQL2hirBmKr8pjKDq/4QfAhWrnSh\nmWZ0DxB+bFfLzDtyqV8wM9UnsrWZPI36iElnn7jhCIk/bHs8DCjCOcSjrAMd\nNAI24+FK7GI+piD2qiaCRj9fg5UcA+XJaNGY8d8qhoLlHrHBUM9R9ZQzBcCi\nocyhf6G2ySVJA8uxw65TkD3Ii0ajcZL8byiNaMcMDsESs6C3cc4F38zzxXrs\n/mzkd2QXVnykidkz6GrEjqSEo58IpmMh9ocK2Ovl9iCgDRpdTXnwndjE4Ds8\nTB8TLV4y6mdUmPm8GLTx3E7F5b/nrDJb9FA9CMV7RlGsf1anCMgAiIaX/cIS\n8hFduA0JBHV6KuD95UU8+LXQKwDJbeBLgnXXwa/+uireCRNIEx86gIfo7vFI\nwPOj0KIFKIFJxlJn83fkDRbs5R8XSHWC7Lb+IIJJCyUFw6QreWqKufrLyoIW\nbVe4murivtNpAbMiUQRlHpqZ/L5hzJEpd82OIBND7YWiQ8mUc8Ex3rKYJk00\nqkcF\r\n=9QIR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"05df0790346facb64d7bf76d4520f4ba734b114c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.13.1","apollo-server-types":"^0.4.1-alpha.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.13.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.13.1_1589224500383_0.05455352763135224","host":"s3://npm-registry-packages"}},"2.14.0-alpha.0":{"name":"apollo-server-micro","version":"2.14.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ef450de86cf6dd1c6a566ad013cdcca1ca27935a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-2NwYcn3KBStz5ck+U0GahI+/EdFT7aHZ/AwG2uVJC6TTjLhHZXrfQ5HJjU9eWlCoWMHAvxGAP/oUQBCLRGfu6A==","signatures":[{"sig":"MEUCIQDXwSFFyJ6jATgyEE3Xcne/JPOo/EzkvCv8gm5fouWvvgIgFP40bkYBjAtl/GicaGxcS4PVZg8teOzBNWhARv1T518=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeu8afCRA9TVsSAnZWagAAjpAP/RkdnJTXC1iNMHbwhUDA\n5RrRmaVLqyVkzRW/Ol76EeMK5kdYjWTZ1HbHMDwc49RyCUFWFMZiyAUi4g3h\n1DGTPkEnRR0IA2HaEEP5sZw0KwwSnf3WxT7VdUerSd8fTj2T3BuchS0MUgeo\nBYHtijhFP/kMdwuiDBBrFfb43RJTdEX8Clpk2rOb6cgpkUTUol4xSisMr5Oq\nEZP2XmbodUj0WjXBPrHqTEVycaSDeHPxPoDSi8s18BtrqMjevAOHryw9LidI\n+R3e6I9twvy8JzaEOtabpvGpdfO2XMa4z1qiSp80Wnk6BnAe+PTcMZNBvrxX\nUoyZH6Ja6mfo7QKbOLUK4vSHeHScnYlsRIryAtyCc9blGC5uOHaZf7a27Mxw\nKW3R0znjkMHEBk6wtVLLOx8IUmDCQ1zpSdjk9Y3xUYnGyHgpbHdKpAn8cT/z\nzGycSy6nH+x+SnHbI/tGzfXO33hSFDQjG2N5c4IwgLJA3a4MSe/kddQ/M6GL\n8IVTYK3k9+wo9Qlk+PksXSljqAahYVRsKhuFioOi0Qcntt5ukuCYusWmK2pB\nHl+GatLGvCd661yDSBPdo5jH1zBnuDbLkQjyvnOY0usT1jWl+P8SyyQxoQsQ\nRFhUwltpTIk4phFjPGvSmKLX8LlI0NJtlSSBt967H0ryA8Bs7mPa2wT0nYiF\nmx6A\r\n=CH56\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"bfef89b8cc44d4bd94f9d5fcd3df8941de526360","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.20.2/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.0-alpha.0","apollo-server-types":"^0.5.0-alpha.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.14.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.0-alpha.0_1589364383123_0.15302949028515722","host":"s3://npm-registry-packages"}},"2.14.0-alpha.1":{"name":"apollo-server-micro","version":"2.14.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2536ab40190aa7937407351bc234961086582d8b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-t/+Mzc5dUm0qSSMLF9eBxALK4+e0ySUMVXLaYdzUoJzW+xn50psJ3wtxnpfMxtIHbjY0SBhSUXyI7azJ8OB89A==","signatures":[{"sig":"MEUCIQDiSogjjJ388hyCHwnR3CXc5GKQcWQvIIGJeDKE7cMVTwIgBDZLA4iY8uK5k7vhnGwKkPM5LzjxGbQkLISFNr3+iOM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew6z0CRA9TVsSAnZWagAA7KQP/RHM95a327wX1d+Q0I0d\nVaOkgH8uY4oBWTHYOHSrabplqylhD5I8ZzlI1uqYeX8KnENhL4+tgu2CO4r7\nhMNRNBf0tt4xfIpk4y/3UkJPPRoot81n7Pkn7GIMLuielrBQwN/cLAzh3Z8A\nO631B4CTfAKRVCF/JqHD6mJvUU+JKQIrfqEpN73KCkdMWMT2xaB44qVTkP5c\ny8h1B0VkjQXt87QWsqMaOE/OMJKSc0CIRYMFk5TBUhp+3pHWEv8byQIQPrv8\nMb3GYNqgxm9NzKyIZtaamsnip6HIGe5rTRb5QMhH71y4G88bUhZMjIV5XvBY\nwgxZRuv8OMxlEBUETNaoV6+OqH0gKsIfD8gYz8eL4i563KMtDNe//YF6Pn12\njOxMBQQVGVJbZsQdYhxcHAEPwhlakK+Cjvt3wHg0jf7Fzu8XUhXnM4/p7EmQ\nzgxuPMf6XsriXNTE8G0HKsGPB11bKdbIVrNl2kjf425UR9Ip2l4luic4XYvX\nvVAk/RUYkEHKIvgxKDN5x8BKs0Wjh9pkGhks/OgJ2R+kq1w+ulQxjW39OHsO\nI1/XhzJdYWD+594RZnFMye++tj1a5nlfm2jbcpGz4x9LRSW1qtJkscCJwIxC\n9qBahHMuj1biUONcfV0xdfK7oL3Dt8mr7fVrBMpFh5c9lqUwI6QG49iEKTp8\n/Cdf\r\n=4hh+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"6b8a4366363c27a8d828e733edef4d06ecc1cd55","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.21.0/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.0-alpha.1","apollo-server-types":"^0.5.0-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.14.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.0-alpha.1_1589882100366_0.025322331322275682","host":"s3://npm-registry-packages"}},"2.14.0-alpha.2":{"name":"apollo-server-micro","version":"2.14.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"74d3709033301abd945a076c22df307dcc18f0b9","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-LR8H8hP7uoIhAtW5nl5jj0JM2jSRy/lzjC98BcHOL58hDkg8rm3DdyrL4uFaNAgzdX6GnHHf+B5k6TmZXRu02A==","signatures":[{"sig":"MEQCIHVtpAGG7WQalsZl9NU5g341g+My76x1GMRrhfhbY44pAiBVSl+lk73VhkBkm/kyE7CTn1UjqG/2RWqBa1I+Tdiu9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexUDeCRA9TVsSAnZWagAANpwP/3piNFEI+cl9CF97Gum7\nyFQan4bcel/l9ad+sSDnJpCujuwZEW/VT7Sq2aVdDpVJncpKRqV9eu3i4a80\nw+TKjCK9w6yKDTDQC5ZwOhjHBNXYj8Unh+Rs73e6o8bPqwTxs5kFwA0EkesG\n8mDVlIX22qhM/bcpiFX06v439HXa83ii0pbeHtD2PpJZ5TRmRdjvSGoVjerX\nGYK8OhnMStSodCiZQUmCC9nYMP7fJIjnX+Z9tX4sSl/KqFhit7csZEi4fVGN\njCgc4q6D9opxpIlQ3Ffyes27WxIakyk5mBIiKA97OF3CjGxqiEV5Mb9Lz63H\nw+LNEcP4Z7SGBVzeIzsGcr37RayKOwK/CmKih85WNk1E/w0Qdvf4TBoojAaf\nLM+S6aq3zWriUMZqZRrGBbcrhG78GZ27Oi9aNDBE9jrQDsJNu/gDBhD02ijR\nGVmWZF5evaz0b6rTWQfa+N4nm/opDWwz8Zr+N4+iTYYEyI9ekXy8CQkwH2qb\nX9B7XvFTdcZOpu9NiogamCGZ8WnreJhcAYOcyBpZ4GcAOWZzPRTPh6s/Gd9n\nv8IDL1irxPnXylQFr6Z8hLVbxT3UTsM1rgAlgb5WBkdBqCKWMC62ACCR3Yj6\nx2kV5DSds3jk5t/oyI7TnU6GMh2L6u0xeBXAl0Ae9uD5J8pZZBMMRZ6p4A8f\nS+8y\r\n=h/oz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"36afcd616858a772c6c46ee4fe4544f54c69ab75","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.21.0/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.0-alpha.2","apollo-server-types":"^0.5.0-alpha.1","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.14.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.0-alpha.2_1589985501225_0.836536715851492","host":"s3://npm-registry-packages"}},"2.14.0":{"name":"apollo-server-micro","version":"2.14.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"91cdcebc2212e1acffab81591f3e9b71117c9c18","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.0.tgz","fileCount":26,"integrity":"sha512-mYZ6FePbW+Y3H508zgUikV3fIaXCCYHsfExjftc7cFmQ0CtAYrdmWiH03vDIiZJpQLAekiOckp8qct/duqaTIw==","signatures":[{"sig":"MEQCIEL9vSAgvAQmShSwhUenpHOJMaljke9Ttj8zTBI9I8/7AiAx6K2UAB0m1xf3oYUd48Oo6ltNnYpp5EWm0RQE+LKH2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeznn4CRA9TVsSAnZWagAAI8IQAJlqR0/3ZY9EwtlqkCsZ\nQrF7Yp//OPBmSTGGVQfsLbLWHbVWh0j66x4N49AjPSSsou7ZfrtHRfZ5jYx/\nBc5mVwWhWwtY0S220oDDtEau0nmKKzpa4q6J5BHwGbcWh+B+ybRTDf94l7Pw\nL3jcUVvd22kYU7do6YKbR9fhp2y+0rVAe8WPnydKke0TCW7V8FMjOZwrXo2i\nEnR9Ogc58Llr4H06QMiiJDvw51CfJWqXDQqG5rAGGnfJkiclOAyTcp61f16U\nyX1xx/rzUnPqk0GKJ0U9ec0wNO5yzmqVZtFFExjSN1IQbYwanJ4wME9vjLIu\nAFxe6hJH3VqgTsl6I+EEZB+kUhZB0FoTyK+fHHSZkQ4oB+Mf5p2VKOQzy1PM\ncknyyFJv9z7iiGZ45jaBO+udrijURh9fU866lRoXfDOhFM4L60Db8EQqgFfc\n+cWpg034DdccVekzMEqbDbp+xITatVg9e77hc0oCqteNy3r2SrsbAgtRCISh\nbMnfmSimYnkjlmxNCxZW+VZ9pyAsnVzbIfCYKf/ceIa48Ej+M6Kup2FgzOKL\nJEZSkxmEHz6cRgTYGhJ5yQyTAcBXoEUBaCdjfwj0f0+N/2P6YH9Pyndz0sLe\nnpjGNba5jKJczKS8SCErfu2ft5AzYQy51xK6yINEZg9G8zgFPoyRP4JZ61zF\n5GDl\r\n=Calc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d159e320879f594ba2d04036e3e1aa0653ff164d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.21.0/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.0","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.14.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.0_1590589944243_0.4035805950414326","host":"s3://npm-registry-packages"}},"2.14.1":{"name":"apollo-server-micro","version":"2.14.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0b5ae8b8260347ad9f00a6fcd15ae5781766b208","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.1.tgz","fileCount":26,"integrity":"sha512-WkIn5YfArr9LTEIRogwWqYBPZ6FjCKJ1CoOZqCBLMTlwQZp8N0ymlv3Cw3b4FB8fBtaaF30FWicH5UY3H69+3g==","signatures":[{"sig":"MEUCIQDdGsm1o6+co4GxP8yUQdWvjbHH/P8nMmgW5mHnrW/aZQIgECbxLhNW2sZUsFiiruCO184sjH3J5oL14YZf+KUaE4Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez/LvCRA9TVsSAnZWagAACg4P/RYkFL1/WZBt0PGjlw7y\n7vH5RlnLxO8ZJjFe5PxQStx0OH7m0qhx0YbOLxuV06wRc7RNfOesBTLlGSf5\noG/36LgrWIT5CToB6Ury5wMiJfX7BYxYW6urV7imtLN69OEfoWlrlGF0m0An\nrzNcgpomCnAC0rnta9EiSPEJ/e4QPJcLPKGOUMsmJ6lfhGC74OrGugUWlCUM\ncHyQvhSG95rs1GM2shdqQY+8VBrym/N+8IJCmdk4umY80DB5w7s8bRJc2gpS\nn+EXDoRhlRd2CjTbc9StVf96tRgn8fs2EtaBVlLtkcZFTvcFnsLdGDYFMvKr\nQOVyHxeOz1x+pq5Ta8zkeMzebgS46eCrr3pn7XgqNjLXdX0Ti3p5rWF3RPEA\nCPWrp3KhtGBLM2w9cy3tE+xXn68FTaAm0V/detwOrwBm0DoQpD/XmMWylK/v\n1CZybLCdy9R19Khvw7kkompvqoIq6ulaE02UlhAU8To+BoL9X81Sa5Q0OLBI\nfpAPP7BFQzbFu6Yibgg2TRWXFpZNVeU37hl0ctiXHCuPUcI7/oTsMmlxQywp\n7ninEWR9Vr53BPJQwM5qb6h2vUIeNx9Bw03M+EY4OZfQChRzVDbNO4+W2HOS\nR1Lsf6rIWjBOo3KWlom+eMsVb3hyCpncNZ/HZcWOo7iuY8YwEm8iHcoBQkre\nPtjP\r\n=aqft\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2da65ef9204027e43baedf9ce385bb3794fd0c9b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.21.0/node@v10.20.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.20.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.1","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.14.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.1_1590686446690_0.8219001514484099","host":"s3://npm-registry-packages"}},"2.14.2":{"name":"apollo-server-micro","version":"2.14.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d4c735af26c82a3b0763bced054e6ff8d969231b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.2.tgz","fileCount":26,"integrity":"sha512-3r++AYlWwzFHFj8y8SX3mGuv6aaPy4QCZ5dVtNokORl2TabL4587ccU5OHQsqOObK/cypWDG4YhpkeKeC4xKsA==","signatures":[{"sig":"MEUCIBBN2K/1Aa8eC61Ej79ZDF0vs1aFQvSn5sNYow1c+NSZAiEAgCXZIHUfR0Bi22Pv+rMB0zLJeSrjGv4O1ben0GFLKFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2S5JCRA9TVsSAnZWagAAoz4P/RlEKkNTmhaCDgUZ2gCj\n52uCZyjcTUpv/pcwzBrynnJQEl/93iQzW1FB+k4bQH/aEbdzBd8hPtL9DNtA\n3xMIYjON7ZZIN4w+r0+s/K84QnvQQjQCMVWysDrkuK3Iq6qwQKyG1la871L1\nDrt8VYT98kJTMwSdHH8y8MnXAcgWGX0C/4kPtulcEvCHamza9fbd60qR8R8+\nFZad2OhoVteablu79VvWddDQzFEq/b0NuqcRDYAyKFO+6+Brl+Sp+mVaTL23\noguxyXtYVxhwxGPiOCpOZHp2kgYqH3fufw9SRUB9JRfBqBQBltdVDoyMO5yT\n6FikJYjaMIt97B+MYoCCJemApzFNcAxiHqJZP39w+5Hfu/r46hHauo8uS9Ei\njS3XZX0Gpp8erwazt3Z07yR0RhhhTDwMu2PoY5+fTqtYtepWkEZ+jph+GdBy\nKircZZ42GvBQ+67iGlCszw8FD7BZvdbZTZrVD4OvnXKXnFXJ9ICyVW9JqZZt\nssfZHPE4Nt7kBKiAeWSkqoppdDYUKHQTjUTU2qKvmpSTRB4fu2fnhRVN3SQ4\n9R1BMXaompJRkLPqSy0J0NRLtGj5EkqX1PIEsrjHTlCVz8av+oKC3ncZO5Id\nwEk7skgV0xz41c0hmLyBDyIi+TkzyYnL2qbp/O2pxzXHr2I9VRF34PzSOJE4\nbvu1\r\n=w5UK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a17f26bf3ee2892f5c3751713cf59920049cc73a","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.0/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.2","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.14.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.2_1591291465309_0.15646138741663518","host":"s3://npm-registry-packages"}},"2.14.3":{"name":"apollo-server-micro","version":"2.14.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5dad6f603ab9d754f915e3be1139ff3bb34b848a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.3.tgz","fileCount":26,"integrity":"sha512-H2ZG7X74w7Kfqi8jdQm0Y5n5rcJCmeQdWtS8hRHCg/SbnWuB05/W7nE2OXhwxjKSHD/98wQe6sjluJHUPTGCqA==","signatures":[{"sig":"MEUCICh7SAfy47kyD/LNxTnHfGhFZ+hbLJluOkdgyaoYr0m7AiEA2DYlz+wJ4LXKgFkslaV8s5OfUSvoqSBR4nHPkFJ547M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3rE+CRA9TVsSAnZWagAAMI0P/1zO0mRZMm+R1EISrKVe\nnNrGZMZ3KMRSZfZ917oKezXjJhsRM6zxBvaqiONcMMBoSTFSP8mAm83cyAEM\nwEy4QGsT2h+iJogFt+K9zCjgE+Uufp4uA0St80BOBqfiZan9FtNFoo7VJhic\nHkQB6/I+3RjQwfHCgYrFfJZivdHOGYHNqDyCzBg7M6pApHmwi2Ajv26TTZX2\nSWVLSJUT9TwKLxVYgW1KHt7LislFBXu+nbj2LdL/RjrPM/mED7WeMBJMuW3F\nCwHKxhnlLZFnnHdIBFk2YejKstugyEkrokQYqt9fWI/1WLcmHmffNM3yIndo\npzP6x9sOXXT7Ejh1CYdY/3gWIvXWAxMpZgKIrxSH0WE85mQ8PVK/rJ8vOsXf\n5YIIxJQbueLyT3RYmWw7W/rbCrn86XRw3LSRroYJeBIIBuW+m8YYzv55cUcN\nD2r4peI/0m5FlEh3PxPjRKQsorVZ35Gr9ldyth1wdcFmTjy6MAQEUrxnEu45\nK6UowuzgyUde1VY5aNpDX89meWHsqSPY4YqjTbrOlYwo2wQQnYJT4IKDByXe\n4qat38bRxQe4aFeiVS3FTeOph4CJABnhMJim2JTvKxLa0HEE+L21wSbzF6T0\nevYkEONzq99wBivXrHLcyQ2pbTfv0LckStL3Mq9jU4SRaXfau6prF6UgEb20\nVlH3\r\n=aN8K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"724806fed355dfcb9203032bcf9d7ec74e8529cd","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.0/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.3","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.24"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.14.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.3_1591652670127_0.45068181277217256","host":"s3://npm-registry-packages"}},"2.14.4":{"name":"apollo-server-micro","version":"2.14.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0175a7d7d843ec0e9cdb8676d5c5089bbd5f5049","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.4.tgz","fileCount":26,"integrity":"sha512-Wd/8giqd0aMZKQsObF5TrY6LFCMkXHX6QkUdwlU7BdnyfG2lQfJsOMYqaKYOwFEbKAMnxoym4vwjS3v32ssK7Q==","signatures":[{"sig":"MEQCIGjX/HkdwId+JF6fyF6/lUjYewp50BqQI58d7UoT61SkAiA4lq3rWMpmsZbAbqLd8uS4SI6MDslaVFnXO1ucZLYkjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe45QlCRA9TVsSAnZWagAAozEP/jCldvOMFZSmNAi6Vk4d\nm65d3Yb0+REBNKTiW/fzDN/2Pb6UGQUascsMo/46fgsWW/Ta1qv+9ZRsIz82\n2cvYnuWtP3cLJcxfKbOC+Fn99BxID09OcgF5yJjuUUH68BNI+7hmT953Dnsp\nxqwghFtFENLx1YL+dyehNd/E5tmgKUrUXv9fyRRJ8D18b9F3NlNB+hec3zU8\ntuymA5u55KB6KUlgUdusG6a4tdDUo0+qNygeEOfP2MHT18x9MEo919FOCXAV\nLhvFlAQSdX5kb3qXW0IFJR+/YPqZzs64FVEh9NgR7QdzWWfV3cj6pXHjRuck\nArNwbogBaW+XegdxmEzDDoFM7/epiD+e4+d8Xi+nnXjZ4aiikqiOwWjflbcp\nxQfSM00Qowft2j8vKlMGV5NHNFE8C7TbT+VPD4t642bpxohCw7naM1oblYop\nBKItdOT9sg7cU2UXLTFydnwzuYPm8r9wGpiIgtqh6QtN9Ie5/zGYR+xaWVJI\nRTaxjg5VUE0LzG99EYjVIVzs6v9eREedE29Ccw0/Et6Plr5zSw+MCThpuRzX\nqX7/jeOd2vF/tj+mXfqmrgfhFuTHlvFYfK5kmupdbb+J45nqk5bHkw5poDhp\nrvO2OJB33DQE/QIezTzbpVYaKRRao4wxlNuLCOpnLx6IGh3GAJKnGEQJHV/C\nSbqa\r\n=QQjx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0ddf084f8c8a107774ce49e534bb2733b7e56c5b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.0/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.4","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.14.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.4_1591972901047_0.5741746528884704","host":"s3://npm-registry-packages"}},"2.15.0-alpha.0":{"name":"apollo-server-micro","version":"2.15.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.15.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0161f1dee52817c31382cd3a367fdf6334ecad67","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.15.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-PbT9fYUQPzCJP+ecazKV7lmu/QfO1fJzZARWY/6VMxSnOZ30c/GT9wVRdvqsBdXpqCUDpvHGHAK3qT8SyEbPuA==","signatures":[{"sig":"MEQCIBRTDdhgNFE8sOl1UpaQFeOcn+Kn8dSr9BWvOCEOrBC+AiB7Y7GKkXALh0nOR5eUiIV7ejlnbs2hNKIGnMs3Cu5CmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6RGJCRA9TVsSAnZWagAAOo0P/ixRGhs8mrgliow+3uiS\nQ3roM6X82qiMCSRVi/vx/vkbcv7hOkGisUZGLIah+Os1pmtUg359nP0axaes\nAMDQE+NbomTil/u4HykTwAm6atdG0/xkoFn6DDgcv8fVfMLfGleSB+l5fHyB\njBoZ0pX6TzIJwWgD+hy7jhgi3u/Stj5xcpgQw10DDJMHdUzfxLqze54xM0JI\n+92OFfAenn7gc3Ssm+40MEayZEKyWYi5qXmEzmmbfKHEU4t11FGE9Nof52sg\n/UDD5WQPFwrjXW5dvYf3CQxTYAS774zGs5z/KrbxwvOmBpq5k/ZXef2Th/p3\nvaj3t7LMgaob5jBn6aHRSVNMXZy9LzecdpAPqLs7uE9g2liRBHBs9tDVqRc+\nz6w+wQvU/Fy0/nND9WmecRYao4abnKGT7ZpHkmemjXTg8y6R/DipEoNcKReV\ngNvqj4FOEpJUJZnBd2bWOUyyv2oj3ffq97TEn/fAW8x/hSyY/HlxJUr/TOlt\nZ/pYjTXdbQfVBzhMagfakPN61gTVOoB4LNTtE610tmztWYBJY+OX8reocDdb\nreaU7d5Z6HVU3op1iE7hN+WgsXKy9JsM7TfF2o2Qa8dJ4lOX7ILgeeIX4lxP\nKbVC/7Jqbykj/2mnLZvIIDy4wp5tVWfI25Ag37ND71TbCwadYOWnZ1I35BYt\nryfn\r\n=wwCT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"a7d6e26cb1915a2d11f766df84d555562e9986ba","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.15.0-alpha.0","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.15.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.15.0-alpha.0_1592332681059_0.5828003333006222","host":"s3://npm-registry-packages"}},"2.14.5":{"name":"apollo-server-micro","version":"2.14.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.14.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"73c61c076643c8421fd67bb90b3b1a849b48becc","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.14.5.tgz","fileCount":26,"integrity":"sha512-mrnvLKMuRMX/iL+5RJKL044jC7ZCaEtAv0Kjaq9NvI20EOCyg2Pl17yXImi/Zew/JEWlD+3sRL0FRNWXtE0wwg==","signatures":[{"sig":"MEQCIHzIFXJX49ZgB4vArn7Qn9tsszfloAf29LlwFZGPF45rAiBNKeaUJJDf+jvjgVkTopegEJRMLaVvwFN22FlCp1Pnow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6T0yCRA9TVsSAnZWagAAFAQP/27uxlzoMK66piCmuWZH\nCmnBBi0xbOPFCJdeB+o6apKi7kJ+xHCD+GuF5gIQXiMPR73j7mW8m9VHO6Tt\nwn1tFIwDUA9t/KpSviEToP3klWja7gOOKLdx+mMDmyp4aUdiHiCvyLjC8SCg\nUIGanspuiZN5tibYt0n+B4wtlKsebf2doERD5ArXiTzW6W70k/HupYp+w6E7\ntX8lfOA0M/fndDggEYKi6ubByOk261et38m2ss/SeDv6Jt4HDbo+Xu0OunLN\nW8F5CLjlYZ16tJ8FKKIer/VI0SecIYPUXROZzPF7hulOXpJvTIX5yTupMYDD\n+P5RKPnqTxqQbZn6H1Ig+1xGhKMLG3Px4AzASHgaJnvAFHZ4eATuHdDV96vL\nWps4N77TcIfyubZR6s/4wPUCs6SKDuY/FVHcYYedEdmSnOLBoYw4mbsmOQzb\nqB7YTVJDMsLc5uuNkxtU0WiS8GMggj4dn9QDtuPmH8I7id6Oxte3S/uMXjpb\nh1uIyP/N6gxO0e5I4JyesSa9PdFXPNk6PdPRFS7k2dRQ8iSZYBP/+IvsmtyC\nnTjO1HjXqyQf5RC+liN0uoosgq/xOvRMEuDxdQxP6N/gXegX020ktqruQOdd\nz9FeeuW4Xqqi6wo87XSk5hS3lI9tQZc5L/NSbJInURcXsVLroBs7c33QWKdx\nG4dS\r\n=9VH1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1824b55f68531b01c2ed965ea44a250e16e5e46b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.14.5","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.14.5"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.14.5_1592343857925_0.7882503442657942","host":"s3://npm-registry-packages"}},"2.15.0-alpha.1":{"name":"apollo-server-micro","version":"2.15.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.15.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a23614f7d74639e1840b459778c91d83f4d5ee3b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.15.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-8vU7QGc0F4BKG5CoIiPp34ZfG6g7+pGDA9cKkL0Aor72YjTyO4hPKbXFzhEyAaj0m+m06hKXBrKda5BDgaN3ww==","signatures":[{"sig":"MEYCIQCnGQAP+ddStVykom7rOKs266WJnjF47iMEC4Pw3kgn5QIhANgFUSLrqy12eYDcldSJZRKBJP8Z4xTJElmDh8w4SKra","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6lBWCRA9TVsSAnZWagAAxjcP/1RZ3DwmsEWJIzkXyJzY\nYAXswynnDd6gjIa88+0BzYKJ1vYb6ZeBHtI6MgBMgeSltNF6SJ6QeBXYmmA+\nGjAlbMSgKXCuLLhPtT3T09Fe5sQ4IqODwYafHGkNxXiNpeztW0dSvXSIgksl\nu+5IJxEU5LHaWShMQ2UNbaU4U9v57ywteYruvZstNVW1ZBm0wz5yfVj3zami\nW7LoAxXfbZt+hSyAEAEhF+6ApY1snCqaY4ZGDuOz+kUs9rSvxZjpXnz2loNL\nnaeSnbjtgXxcOZ9vl+07Po6brioPKfutkpjsgXfLwPjyVTIbuacZudGdi5yg\nhBWoJjvsjVF5rT3204VkrkVnqVnW6aU7N8Gx0WWuC+UgYLZ7SfJHopDpGRwd\nrsKMo8xyK7nURM9oBH+ua5Rwxb75q7LymDuan6cfnfliC/lIcBMhnSCn/vzI\nqEk88my59UZ/l0mfTAEZe+qVxkEIjijnNqAAaFRYV6jMF2z0pjbvrLHU0ks6\nQH6X21MsU82JQG/QiSvBOTXJpZ9IDzxDuQCU8IUbHB1Lt1xnVbcNWMKiqrPv\noF+ZTcGi1tQ54kT0hHWLXPZdymsKPuqxzLfKsF2ajSBuYOjrB/r9r4rb1PbW\nGE55DMAEmYbhyIlEXD33DKSw980vncDsAXXHqAeOzFhra6S5PvQmXa0TtPsE\n04XM\r\n=An1k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"803db445585364f1ad75b1984008ce44524679c6","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.15.0-alpha.1","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.15.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.15.0-alpha.1_1592414293523_0.7353658009197268","host":"s3://npm-registry-packages"}},"2.15.0":{"name":"apollo-server-micro","version":"2.15.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.15.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"749dc922b6db38e6378f56106e2906d801c99734","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.15.0.tgz","fileCount":26,"integrity":"sha512-XtfiDIDzU3av7w70/Evo9WmCYp0ZSr5T9sTnA3CMahcZ6R4S2vJjZu8z95CBe5glSyWMz5EO266WURdYxWLO2w==","signatures":[{"sig":"MEQCIBk+UZmMQbTAw7yTkCMhPX3KDzUsHrGSG/Pdd8l4lFOvAiBNDT1wvVPZBo2VxN+4Dme5+3rNSUzztpdDWPZ1oKUj0g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6lIGCRA9TVsSAnZWagAAJ+8P/1VQ1VtgXdINccj2XMtk\nFeLID3koNxeLJl+I0RQTWKQA37u0OnFxt1ijGwTrpcwfS9jNzWQzyly8JR63\nIYBcC90CDnHSMTVBpBFxo9wDSi6IX0PIfPLTM6gmupdZ8kP7FauZZB8wVcTk\nuc8+x9CQlmGsytWdmKGtxi8scGxb8kX1rhylIH8EDrNKVavciieeDaRT2ZsO\nhFycOFZcC9B5Tk09EbLKIhctsCCOlu1IR1m8U8+xNw/Ftj73XRSJbtyT5H25\n4LG2YoRLyOKkh3kO+gGQw9TAnC30OzgRscKs6ptS5HZLaiARnlemdL6R2Vmk\nHiLiHw8nR+pXfdZeJ2cIl5NAZfuQYPcF6ly+XpGct7hicV3TJnWOJpgFQsI5\nnGP0CgOJWIOBSl5qZhtGZvKZYmsUo4CorGyeUvphyvJ48P594Giw9DA+JTmD\ns4+O8fiw0MfXPeAmCSv36LqqyJ3T0/MNt1bRJxbfO72XR75V19ntPE4usEj/\nXphAGzK0xttjXgAepDLPgxQ5Px0bYdXDXJ7GUyy+nLQJLZ+ajzPwlaJES1A/\n+Kj7+Ha0v54KG8nehmC4WmbX+KBBShGQDBUPHbQtuEb3Q6CaegWYESzFqIPE\n1exGoZvvA5yxzt2c4KjfTwY/bM60356yNEInGjd6JXgJMG3YWLb892p1S3Uu\nyZJy\r\n=mj6Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6f7bdc6099669728926ea88f6317cb17cc6a4b43","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.15.0","apollo-server-types":"^0.5.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.15.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.15.0_1592414726209_0.33385248646225607","host":"s3://npm-registry-packages"}},"2.15.1":{"name":"apollo-server-micro","version":"2.15.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.15.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"991214556ec60b8da6ce33b5c67e219aa889414f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.15.1.tgz","fileCount":26,"integrity":"sha512-b9sVljcvbgyKvRbvkcygSdQ1SkpDtfzusvVVnBgBpWUh1a2KhgAWdxpl6q4NbYlFzWGkE3IsvcDtEAtsgeNfjw==","signatures":[{"sig":"MEUCIBZEcumrp6RJe6XXf/0AQ8afp1KvdWT6T7ib5480LndKAiEA2PkAK3c8MXcP68LVJDYwAucSOGXrcfxa7Ax5cnMi4us=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+yEWCRA9TVsSAnZWagAAxKkQAIRDZF0bEe/+U0/crz3r\ntgW7Z8ByUfz5x2eQwy6maxSl87Q/D/QhZu6XmYjORUYyf2xCeXog15CZygrX\nqqYQ30ggTJj4bjs9uxlrHuwqEJBDEzo4fAdXJNzR3lR3dJM4hU4V5cW+OqSC\nVMU6sayGYRZe/veBueNF7tiJnjnNuAOlkMC2LPI2avIfBgyJOkb+3VmY7hP+\nhBoM3BOEeLG8U9rA6ZY80xt8tZ0tm0a2Nse8oYEbZgANqiMAhezBeAjXbwAR\n1MJA4JV0tQj3E9YPf1LHnco+lV9bl8x3jwxhS8aR3/7G0Sjh5mQTJLPXF6ss\n8jJ4tO/ePY2OOCQWuNZMzh1y5ClVBR3kaxTbOJnbg/c28ilv29eFqjb/bbuO\nDAtl3ihhW9IeFul1pL0qBB9ScJ46MD/BS+57c8OP/fYG2oJTMZhCnZPTscY7\nHESgupgeh/kMiYp4ZN9nvqBKUkJmeyiKsvPOm/x7e96n2z4i3OXm97KJ6wnL\nYvDsBFeOVrVDnEz3Ey4/rag6P8v/PQCSxBqACTNvZyFC9raoo46v7fLBzDzk\nczUvDo+E4BNOSpLIdkbUs4sSFnaso8UcEz8hixIwcFPCle3014FrsJd34l3n\ndX3ytPt1RIbWiBx6xz7xAD9g+15fOtDtz/CUMAB5puGaaLhFst8m673CsZHz\nc4FE\r\n=6kJN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8cfc947ed56fa3f32b82b32b4bcca53470712984","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.15.1","apollo-server-types":"^0.5.1","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.15.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.15.1_1593516310072_0.8429903655183053","host":"s3://npm-registry-packages"}},"2.16.0":{"name":"apollo-server-micro","version":"2.16.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.16.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2d44fd17ba1c2f4a077bcf92a415e1e5ecd07055","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.16.0.tgz","fileCount":26,"integrity":"sha512-x5QL7WfoNVuexhSwSyIFLeVAveUXm76oRtz5h4d0yKXLS5PaKn4RzlDjTXQxLAMDRb1WmJXLv09Hx85xXN3Lwg==","signatures":[{"sig":"MEUCIAjFksc+opuxO0U+XfkED6DDzQlwC6f1k9oN+bqjC5DrAiEAhJD1aC6b14k66Pp46nk6cn65AlW7oqD+ilGVyT0K0xA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEZYBCRA9TVsSAnZWagAAI7wP/RzD42xZaPbqO5264L4n\nmOSkJ3T7E89fKhoahQ/Seh3qxbU0KE4OtCBNACECDXzYvP9o5Yu4Vga9EjvP\nuicpfz3p6cNadizKJ6CBn1vETUgVZmWKIp9rgLvz1rSAAI+BkJXo9ZYDNTpg\nmOhSnV13nwAhksAqFkdeJTK6LjBESyuo4N1qVUJjHbNPs84PM0F3Y5cHQSll\nzRTp3BB01O62qduNplNDn3DLwp2ILczeOkQAoLO8EoHHMZKgsBzKqUhzcO15\n0ZEfDRKivm3DvixRCW/fZAWBUzFCWXv2ObX1Gl7qV5GFkq3cY5CJEa5TEfQK\nyVfnlvKSRNikv4BQnvIqcAkUUbrO6Yr8NMnUPLxdkSqLRcGJoN7wwbHAov8Y\nmH0KWo8C9QtjpgWhhiIaQkJt5GvOAKDztocX29sS6DaZcPIqvkcYlZjLWeCz\nafuLnpdrVMmPs4mKa/J5SAevADUqjamY29OpSONCNhRoEEYpaAui/FH0aYFK\n51udNtI8+1qQ5dEHWSZ+VZGCY33opiLO74QS6PleRtSY725K8D/mIk8lN3qg\nI8PTHGg+rBMdM7WuEdnblvY0gA/llzZKiKDR8ItUhecq5KrR0AV/6Til/k9E\n9KqQVTwG7h/cPaqv5YTcPmwYdhhpoMUyPiwUjGZVyFGkz1lBHykb743egLT3\ncUrY\r\n=opkf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f4cfb22b93913c98e54c638ae39f39ed153daf66","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.21.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.16.0","apollo-server-types":"^0.5.1","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.16.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.16.0_1594988033066_0.2080970168027474","host":"s3://npm-registry-packages"}},"2.16.1":{"name":"apollo-server-micro","version":"2.16.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.16.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"937f97a92041f3ddabc36e57ece12adedddee913","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.16.1.tgz","fileCount":26,"integrity":"sha512-iErTU9zltnVOvb8ZJ0cNL8WHKWiHgfSt03Hp4J30qMLVDRvXBsb9Wt/GvW/9si8NBMw84E0kDlQpsCrZ7O+c6A==","signatures":[{"sig":"MEUCIQCFA6jxlqW/gUcZ+r8/ACto19nLvfmsTr2h0VX0eK0ungIgR2yt2eeDF16HBjrh6QeYpawVgnZHHSEMtHIHItEbiKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHz34CRA9TVsSAnZWagAAgT8P/idRhSm+6i3GtL1qm7U3\nGO7XgC92Ovz9R20V6BPJ3VJm+bdSxMGtrKTMQEKRXXCRLinOe213w3RdkE72\njBUMifLgxbtT1gtBDKoMz5as6GfSTEkv+4+EvwIcTfi9yaYTAY7zBUkYgle/\niIR/iOMBCCn/2LMOzK1sK6tZ3lnF/xt7REa0/grKUSMO5TlnYPjmoT6r2hcN\nu6HXtgZcFjcvraMjQajFqsBh+Y3Nosg3SreQgKpppbahwbn4CPqXUf06gLV9\nnNgEjyZdqwQ9MctkM/9nEDBKcLLV+qBqZlAYeJN/KWThE8MMksxaRcmdDBDz\n83KN36KEjnnAb0dzdkZ2mSps3oQHzs46qdG8IRiNzhCSzL3LvuBztK/4+VK9\nipFrFvC1YklW8rw8FMhD35aFGWHyspgxXvjUWxfMRuhT+q6wydY9lxfZYuzh\ncZMo79pycCG2ppsYWltfdXnumw537KtU8ED+7zRBaJYzLGGCEZs8bnIALL7p\n6AC0C58iN6la0T/fNTfBtdGy4lH8LCvjLLz1Dy3behzU6nONa1gjyM/dIbiW\nc5DHcWPXZZDKXR52rk62v6pUzP8gh3IQYnif1FzTdaxHvQogtFPzWVp28uaj\nsmWjGHqOBy3fkPMmxB9GC2xtEhT1aJvJ25G3d45GRxLlve584caWdtDYom0R\n/dqG\r\n=FR1b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"128c1b0930ff789c55ac258a0b579f18c6d5312b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.16.1","apollo-server-types":"^0.5.1","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.16.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.16.1_1595882999824_0.26639517822967296","host":"s3://npm-registry-packages"}},"3.0.0-alpha.2":{"name":"apollo-server-micro","version":"3.0.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8b8390923b660351041a4cff01e0285838f18b20","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-heePjrsqD/hVCJ+OPXIcOluTNFtj82ucaeq3Ghb5R7EvntcgqSGyNd2vf7frts/l02/qA9ZBJNqP+RQq8BD2fA==","signatures":[{"sig":"MEUCICRIOaEifHLjaPSXE/Xzmp9q+dKvVWYRV4gu2X6RTvU9AiEAqWEZzRwGvjDwhkABO5PEH9y+6+kkosm4iWSzvF3k+wg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLGGTCRA9TVsSAnZWagAA8j0P/jKoKeib+vsOqMKzKTWY\nq/5yZyZpos4xTng+gq3D34k6hNV+WOOBgskwJOxkqeZO3SGMft+BtZ91mXt1\nuisq7nARs06NJ4Mw1/ESyzbbnLJ4d/ZMJCoMtUPmwdKkhab58gDtEw2KCChC\nLey65Fiwfxn93Z6qARgTIUroORvy4yDOMLDbBhvS00dO0bNH/9ZBRjpuWsfj\nbRxEOT2Mq+DfWoHxq/GM4JRKxuqyUm0B6/VTjkMAseAPWplKwnnrZE4ivP0f\nnKW3QJ/U7CXgu6cUDRFdwQctyjWeT8uQ1dbXJlMzl2MSfBgEBf1Z8kRpd634\nc/PNJikXiaoLeJw5+C1qJNygok5xA/S0o5bttsiVBp6RZoTOC1QC5xe4Eef1\nIxxcgv8QiOTwg5hpYCw8jkHClQdrrGfdt6pf29f7eLFv3O3+bMGyRxJCKBvg\n6vRwj6D42A6lNknAITSpBTK1dAqD2rf7AibWxzOZx3RKWnTASOCKrAHEv0Y1\nZLQqGT8Yl4hWrNcS4Uwmucv3VGwPu7ACCfJdP7Tan0A49T7IGGXGj5a66TIK\nmVx8ERe7TsP2DEdTE5NqezFKnAHQLPMAyy0pUxJz/Kbt4tRN/F/iTLiB91La\nsUXIBeG4wYVI/4cO8zwIrL8BHedqr8d8zo0qorMe6b+uLfBgmNPqCozR132C\nC0Oi\r\n=D1bb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"6f3711b589dca8079264969263266cd7b6010ed3","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^3.0.0-alpha.2","apollo-server-types":"^0.300.0-alpha.2","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-alpha.2_1596744082717_0.23346468523765207","host":"s3://npm-registry-packages"}},"3.0.0-alpha.3":{"name":"apollo-server-micro","version":"3.0.0-alpha.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-alpha.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"345f31d3a62c110fd4686286ac02164b1681310f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-alpha.3.tgz","fileCount":26,"integrity":"sha512-JM2BuMLi2Ifd8qVltm/EaxEdLSeuoNVxE5SJF1DehCAYPBP1vGTHRCRkEEzSX705nwWCqqj/rcPtnAGZ6/2YEw==","signatures":[{"sig":"MEUCIE4sQN5aWvL5pf7NuIz8NbrI+nyH6qkOGaAIzjDlsO5cAiEA4xSuHKE1BVF7EmA90MNSbqJ8EWpWdxTAdvs/ASfAoeI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNB/BCRA9TVsSAnZWagAAb/wP/jRoAx7KiBp9lwY08Vaz\nbourk8zuBLB58qQp3/6sdDtS6pCRVHXQyw3TbAYqKI3aUHCIQZmIjQ9+wGEG\nt4DN+1ms6jXN+6B54GOQlQPKTlxUyxZxwjC46hTDsGiBbd8rDahLRPJQporH\nZl5Tn6cR8gHy0A21etBlQXp7bK0g49qOOWrasbi7XkD5H84h1kxQOIywHI4K\nqV7foQtzaDCovS4pavwLwtLL+tzJeT1fTXS031uMkDPZz8f8Ngb43wrykZtb\n3RlaszZ1A4V/HX2uTYbBruvTz2Ka4PE6v/+DM3CNAgJ1qgVj/BjzzMrlO6pY\nWd9dtVKoAZfY1fKi4a7edyZuLW3QWXXfmoo0oCJ4SS6GnLTtZPZGFv2ZK9Wn\nE6CCo4EGGMC+G2c5On7tCg+NoXmpKBza2BASMTK/5aSQhcRPMl9KNTmNN15T\nlh7ss56GyF46lDempWwxfl6asAv6A5MtzBajfJjwB7ZzfpKkWAPRdC36kwVR\nmW08VgTrs/eKN2z9bvKUfY85U+ep0FTu12thvTZSsr7HCk7qWdvsoWLXbJWI\n8mQqbFqtpdD9JDZ0iihXG+wh5AhaPp5b12KATkp2fhecg/frg/iIqh7FQQsO\n8rue/XhtveTwpEMLQUfvKvZ3EqQ8DEjSVUDQVTZCxSZHkJnT723b5LBJBEJs\ncz+q\r\n=JOxQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"15b90eec22523e32e00d97a51b28cbfba3f39c78","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.0","dependencies":{"micro":"^9.3.4","accept":"^3.1.3","apollo-server-core":"^3.0.0-alpha.3","apollo-server-types":"^0.300.0-alpha.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-alpha.3_1597251521022_0.7487004637622394","host":"s3://npm-registry-packages"}},"2.17.0":{"name":"apollo-server-micro","version":"2.17.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.17.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"09985c9e115b8a0bba78e27208d93f11d0795f32","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.17.0.tgz","fileCount":26,"integrity":"sha512-58lXkcyWvpyePYjjrnq7BdzC2MsqaWYkiUEq4oxGVCoKavR4NbCbfFPgE+3Gu/84HUG6udhEpv74DdXKUqjjbQ==","signatures":[{"sig":"MEQCIGS2q6qEAsW2NC8S1Q806VGmN1cwu2ErVI1iTm0maqnsAiAdkO15YMNqsndtgYQCKkKdbQpB7O1lKeHyzW4rZj6d/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR/6BCRA9TVsSAnZWagAAsrYP/A86bij5RNumL1O4jB4i\nr3QX6sG10yeZkhmqHqhv1DjaM7R61dIa0v9dqMiT6DzumhyfBY7G0A97CV/G\n3ip6TPWvUpn5vkbOeN4ftmYAv8/wJxauggIqw7zeTpDWorZNexXZofuBOZzF\no8y7AvNDsx4YFG651sQJh1Vh08P79e319L0/tun0mRDhP+5I9UsRJwHKlsWU\n/kz/rrILsBU8OoNeU1VtiSqeYI/7jqh4EhC2bs7oOWMCT5vWKu/dgdhvyUOE\ng0U/28IGYP/QKmSgtdNb2DIJqgo/zbZVONbHiatjsjk+MJ78NrreEF7opX3H\n6CO+sF5zY8FFHrw+kkPECDnmNpDNszrZFmmpn3939WplDXyEN9B1m+FfV8sC\n4rVwElELjkTE/9LNiB1vCK/JPy0jqDSY608cRc0TZvU8YOwiT573x4up9Jl2\n45Ni+TTxL4BFQ7z9wtI5dcO4wDtYQvVN1MZwyELpPlgqzHufhB5fdC2/y8tQ\ncPi+yHojF3tBea7QcqGByS9soO92CTC5/fZguCL49khyqRgJvRjKEx+mW9hC\nwxiKH7ysuUoloD/UFJZOboYVpXIfoYRZztoScPOamj5Ynf4nY2nThR3aWrbf\n0M3okT3Na/skqG/oCwm6nX2mhMqWtcmhEmcFWILo5XGxEIKTDV18bhQ8eS6A\n6I4B\r\n=JK39\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2db096051fc5bad822c0d37b530c792da39eb6f3","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.17.0","apollo-server-types":"^0.5.1","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.17.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.17.0_1598553729423_0.9926143561461236","host":"s3://npm-registry-packages"}},"2.17.1-alpha.0":{"name":"apollo-server-micro","version":"2.17.1-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.17.1-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1397f20c8eb8474697fb3df313bcab92afa552b0","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.17.1-alpha.0.tgz","fileCount":26,"integrity":"sha512-6+eyWx0sF7J45z5Fn8aRYQXjSFXc0uGtf2Tbw0vwG1XoMnqe/p87ydvdpm8t1WDzF0HZmadBzuRkpFq17KfkTQ==","signatures":[{"sig":"MEUCIFO2K6rqLBJ4Or27UcruMppBavlpHS+L99QerIUopbG0AiEAufa9eEBXtVCxoOUGJLuBNwCQg0I1VTnlOAy8ahorudc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUTSPCRA9TVsSAnZWagAA+n4QAKC+jy6nHsi0PAcifAr7\npsJtlZwtGcuaRmZccY1OfW0vrZP6P0FwPO7/PoMKNny30F/aWzg1Qs09+qL5\nXKGRdmQi7l3cnCMMxMM7Y37moa5JbMw8q2H922uMfuz/mx3q3VE4NdYWfzTJ\nhKqh6qdMv6TxdtQwnIJq4bIe92CZdh7qMJVj5yhD+R6XVistpD7imKh4RtvX\nQV3U/ai7VXBAGBGUgi+e9xIKtf0bXUCVFM7WIRxj6nVg6+n4xKspanjcFUqi\nqen05wtrGfdtluLXIBDflAflOjzkWWUwfXKh7w63XD9mRmlj9KiO/sq3OSso\n0tZRnNba+BBl43FbxcwEI2RzeOWFcOdl2MIKfv8a8nh8KyfEYZERzHuF6QmY\nTw+uhQgeHP/CEv2SmO1KkiOIYp8iGccLs1OLoxD4NUFcXQBQj2Rr31OFPqxf\ngMrvmUIvsHjm/0X+0hG4QTXuKG6c1LBX1AoDx3MOqevtOZJsOXxZB3sDcFMV\nCun4ThdhZkrPfhckekx4BSQzNa88xq652LRabjEf9ibifybQCyOW5auU3vUB\nfbk0mTp+BOi3imRURSxAUY+HmWoJ9TMDCoesZhVKYlJiSmcX6PXT4xbrEGBv\n4+ZZx+qGeWOf6vkunE7ETKG1lPSZ9ybuazHD+O0IO3SOLAwPMyb31oLHCPfO\nCm8Z\r\n=Yuyd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"a2571cd6efae7e8c9bdfaa6351ec2e62dba4f5bf","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.17.1-alpha.0","apollo-server-types":"^0.5.1","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.17.1-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.17.1-alpha.0_1599157390689_0.7130403667003784","host":"s3://npm-registry-packages"}},"2.18.0-rc.0":{"name":"apollo-server-micro","version":"2.18.0-rc.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.18.0-rc.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"dd9aaf2175796d5f5a299b04e1a7175591f8dd12","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.18.0-rc.0.tgz","fileCount":26,"integrity":"sha512-e8x+4Xbg1Ea+7iNgBgTiAFIgkw5CgAqsn+d7TENeJIm8t4YnS6KzOZ7yr6zO9AXmaRJsLHEjPuCqiQzp2BlDVA==","signatures":[{"sig":"MEYCIQD7U/TOJXdu8CEXsikfQYPZAno6F3qmh9g31UjrT22/7wIhAKQs6NptyN7wmJxckRYX0bUBgvy++KNffEhx2XgeTlfM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZTHpCRA9TVsSAnZWagAAUEoP/3tYssOg4nFQ2IjNAGnL\n1iMcxVRhOnKysUcPgTJSlLOhUQM7R4cjLe+hsuPREDXXyTHYM7ua9WCTgVXu\ndMzNE+rpFYVsBoCqnhJEdZFPaicI6WZQXNQ8dw6o96+/0K6isb0TnNqwdQi9\nma0asVmAehrZXDrU/6IhozseL558xfv72x59afkXeuElJtgq111VZqYkI505\nu+lT9oJer9C/vc8aDpRywse6fA72pZnYlhPDkViO9D7ztyFcn4oZ8635bN9J\nUdfGuukJuHLZjKYSOaCtoHiT5O+e4vs+kvTZN2xsVx1exGiQZdhfqyFmA3xt\nQZnaPFrLpBEZcgMi1j31GCMyrP+s+0AssAET0hmd/4Hu5ORFGycz8Oty2JSx\nhuVDD+hptLxtng2TBmOUt8IZ+ZCYNZzlsk5otjQomn9nZhUVCYrzMnZxL5EZ\nNpPu/YB0JupugIBV/bMXPzEKxQrHacbofLfS6rX3T0GASdzxekps4WFdcfRS\nuJtJcGiZrZpRyCDbnRT3HNmc8RvK8Wvr1QgceIrynXDbdmrTdNgeRya5ZK7N\nnKiqw9CtDHwGmSCArm5ysJXI0N7/hGWgIecxdVB/UWnYWOqyEmeSvDLe9EYY\ntioJ7KGJsqdgK5t9o71VOD12OTP0D/9W6DJROIUapAuMblTcfhsOohqnESGy\ns1Gc\r\n=4Dbj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"9e5cd2804c4a5c320cfcee3d0b7448e02e9b2b8f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.18.0-rc.0","apollo-server-types":"^0.6.0-rc.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.18.0-rc.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.18.0-rc.0_1600467432953_0.29710922381559146","host":"s3://npm-registry-packages"}},"2.18.0-rc.1":{"name":"apollo-server-micro","version":"2.18.0-rc.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.18.0-rc.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9a5a50d042471912477e2e9c5e3c6262b395454f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.18.0-rc.1.tgz","fileCount":26,"integrity":"sha512-Mk0JxoAy4G1xTRpwHexEz/vACJQpeZedA9tHOREJucf35YwT+K6PPntzlSyE/MGh/MhOMn5lzOKEid8e/eRiCw==","signatures":[{"sig":"MEYCIQCdHRaFt/dJI6CwBGgy4SJSBzoGN29g3clImLlHjtMkdAIhALaZ6wHlHHo9q+HY4JZSD3rCVf+UhumWQu9Jn+PKi3p1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaOcFCRA9TVsSAnZWagAAzfoQAIZMBxYTSSQ4lO76kG8o\nfcdCrjm3wHBBhgLyi+rW0DbNuUsd9+PMxolUvIYNJYj8+ukr5PRp7nnnmo9g\nqyVr8yOIuoqdb4YbcCKZ3AOvoWJ3DqxQqkUxc/TkRy6WOK981ztbm9Gpn613\n9gTC2Qu96MVBxbUmFKb7cM2UH5oCkl9WMnY5sI1DWbRhEdgurJ7TCD2Tiz/s\n4I2ZAn9yWH+ssQOCDgg1hWphc8OK56wDzbt9wIgXZD3EFjVXwuBS95VumfWW\nc2dchh0gCv1VkUSMdJSjGbfNKCtDuVo3EiWfhiBSwU0c4wZ+tIEHXTK5q1pe\nrSrXyjnWt3WPMe6Z7Qv47Axhm+gW9qNcYxiHCFcXGCpSMMSbPI3Td0I49YEY\njW1Ci6vKvIyLV5D9uS4f86xasCHdor1FsjKTW6oQQ3sq+6z3UIANRTT1B297\n/Bc7kEAYIw6sMymUNNiQuYkHMWTMrqnYioYbYRKGmaWGwwgotp7GoL0gLJvH\nT+dR8VgcWFqOQsmfFzHNqsOcnDqvegXjIm7tfzpsxJDKd2A5ReyiOMOvMkXh\nwF9CHEXeq8D7HoFOa2J3JduC3zjvxs5DJMPhmoCbcTFyB8JHMpB9MUcHQFRi\nnKAyQ/8IBcV8ZAjDyZ5DGpNfYRicvhUx/p10zYRV0MGdBU4jLVP3JE34jo+d\nqY5W\r\n=YzZL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"7481e51d6de10e684e9fe0252dfbac22392771f7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.18.0-rc.1","apollo-server-types":"^0.6.0-rc.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.18.0-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.18.0-rc.1_1600710405161_0.770664828682752","host":"s3://npm-registry-packages"}},"2.18.0":{"name":"apollo-server-micro","version":"2.18.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.18.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c096ea6145f7762f679ee283aee23033fb313df4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.18.0.tgz","fileCount":26,"integrity":"sha512-GNKHoatp/Bf7yryK7/zw2iuCNdVdVMY4j9aaEBnn6ujh9H3gfoICP49YKK93SJS9QWiu+pC9Q5qLVs8zZXJdTA==","signatures":[{"sig":"MEQCICT11UBeYrqsy4hdaVsbPfn01BnO/cZmNlQG3cDStT3qAiBxBGik3WR7pZQhFOcHD93qEiNb11/SX63lnBSBeRRhhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaXx2CRA9TVsSAnZWagAA0+YP/AzZt+M7XEzT6mad4X+u\nQx8ztfflDTfz//sOWhzDV3PDeJm+dXsjW+3NDXkNQm7KX9OE+wQJAPdVknqL\nfrSj62PCWqGveG3SVnl3zUQzOftvD8hLf7BBW+ceVxSKHAP1YOlb1FmlfpN7\nvQWx3T9UBlIxQ6Ei6AKTfiHZ83xUl2YX5+AdK7+j1tK7Hv0G8pJYQQNTkdoD\nHaXXJxm8N1cGAMbLovjgGStSycmFDHAheVx2SloS8bVqYFyIi9O28PV7aA+D\nwdTm+8W4+q2yIkiH1h/OWkXtm6WR0bsMF1ySzhyO6rdZQ2hBZ0WzNhwIOc6A\ne2vckqTA3TEeB3DGgmY/VrZY/yK0pjiCljmQOpo7hH+jk8kyP3ZvbEf51ngS\nEUSwCz+H7ic2cL6qUp3UWNHpBuTHTBWSHPvxMBvl3R14zn05f8HLdbZd4XRL\niSmEA9IA7ocPsQLm+QHLbKiTWKelnosVbjlmhumAbS9dXAATeKpo4wU4BOOv\nVXYHz4T37qHpllgfK3VDOrSdWMUoo/hWU1ax/+9iGmLsLZhDb+Fgc5POyCjP\nBn6hFxvIDCOWrKPGc1GZLxg1oVsPt6QR4r+gaPUITy5bpZz5t9m85/40QpZD\nFzfS5KYZBOd44ZDRv1rFuJFpBu1t3xDaGKPa9BEygypg+DT5McoPbun8F99z\nY5Ci\r\n=EUn3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2aab7fd973bf352a0de28b2385dbad4be7c7fabc","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.18.0","apollo-server-types":"^0.6.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.18.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.18.0_1600748662048_0.8274907754573235","host":"s3://npm-registry-packages"}},"2.18.1":{"name":"apollo-server-micro","version":"2.18.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.18.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"69fc49c0842d77b631bf1cf53c7cdc89d20f482d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.18.1.tgz","fileCount":26,"integrity":"sha512-iZe5uY0fvqJbcD9quKl4LVZ0xU+MmrfBjoSBlOMXt1FOq62ofDTlxaeQTBFP0j/a6VU4bVpfi8CCGhIzKda83g==","signatures":[{"sig":"MEYCIQCNeiUmtHsfW2uCEV0MnQhOtMwXd20j7MmyBFiC1GCncQIhANrdmnXX/WEGB2NvguFA0KjzulKVNY/T8fmsupRy98c6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbODvCRA9TVsSAnZWagAAhGUQAIg2Z6mAwdOCNLL8pG6Q\nvWw3uhJHuzg+2VYroJQRlYH78AxMsaHbMoMGimBbHFxM01ZljffJimWutjEa\nZOui8w25w0EvDfjTZ0cWidx9SoByIKkBLZnVmYJB7twJdsu1tbxbznm71IIt\niRZfyb7XdAZrQqJtSAHyCJrIqUkDskWSvB4NeKXVM49x/iVt4sXkH9j4IJ9r\nuwc9BFCu3zjt+x9RFuj/sPflax6N45m9XqoSVLsKGq9qokBNwccOAWLDzuw1\n//4xbGVirL15ddfihrjjlCTQ5K112/U3XR5/U+70Nx3jQZjZ5auQ2eX9sGXr\nsJ3ahfXBdqGatZdyFpJEKL6KC6wG92QbcvM+z54D5uYh8aKCa61PWBJ1cLP1\nO1AvLWCfnxePNRP6u7gdYeY4QBSRIEDAJ88Z3ih7AW6L23kRT/rEUfg6eqCA\nZRzQ1jKOHWoIKF0NulnCqOyQanSbOlqoAeNEZZRRHeUxlVeMT8qcV1zByMfn\nbVvxUTZ6RMYb/ym9fGhmVI9ApPSXOQduRPTvhs0jtP8T/SbQ7SzqtQeUrf07\nlT+BZbi1sOBfmUNbIEgOVji2v3POEEUa3b1Yr0Zaa8NXDYlaBsorQt3R93Wx\nM/EEqqdiVkcmb6cbLhvaqeMdybO5fo8cQp3YN4frKPYhUHEHqMXNpghBDJaY\n2jX8\r\n=MOPe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"83e22003c717e93bc57655d4849b0833369f1152","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.18.1","apollo-server-types":"^0.6.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.18.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.18.1_1600970991284_0.9971555342743299","host":"s3://npm-registry-packages"}},"2.19.0-alpha.0":{"name":"apollo-server-micro","version":"2.19.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.19.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6a9235184a3947248c001520f66c351c1774118d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.19.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-pjfEns+IlguZoEpy2fPmtAvUuCtJZrLAMkAb17krfeUTKOcfcupQxDgwyUoo+YdUoECuRdvu0fLnYgul96KQcQ==","signatures":[{"sig":"MEUCIQCFypw2uW3ru/JrGaFxVZSiMudwXNR392B+gidJDlGfjwIgUKWjEe+DBZSOPR4qt23NfXUsO5BizZCxnCjWEKyApMo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeyxYCRA9TVsSAnZWagAA2nMP/jaNi+BWbgMq2GzmXcPs\nlf+oNztzSbrGLSwk6UNKwnKG51H19Xc48pXRlYyNlzeaoClRzoOMjaERPuU0\njKjpU249c1RwjbMLqpH6hiLEseyqMpwtrTbkYt1BYrLAYTJiNTsTPE7+25BA\nMHHQ7LYFrBsRLf7+j926rqqfCEZt3FaKN/b9gcJlcHwOB5yUQnLA2yHGyH5U\npAh4UWIYLOfBnUeTMSYO7y/Q1kxxu0NUGpq/bQzAxJ0VdxSq1UftptsAaugz\nZToi3f+ITccyX3o1kwu1OxsE5kzaBWLPXSzitvqVyMc/jGdTmL5vMP2o8Qsm\nz4N9RsIaP+q7uZ/b2vYf8x2J2DOy/Dz35Uu5UHipcjjOv2L1CP4KgzEPynO9\nhk+zKJxyiQJ3xs+NFvILhlP+tMwWzD0wlv0acbQCUlQonFEH41rX8lLHalOs\nO3XSSRyzy/9q1bLa5y9It3L2KTaiAPtPg6pLZpdHhm0El3dODGUSokq1oRBv\ns8t7CQneQfeKUZ+sH7PKo9x9Iq8QJU1T3Wez7u3vremHvOEJsQ3s/ChXggv2\nq+NAq18pFs4iZDO/A1JzB3zONmt31DNnpXD3s8n4JnYwmXYjD/JD/i8G6LCI\nK0brfIOuuaC4fhUN8E217tfrNka6/Ons/9HvRNcURfr1yd1s069V4zHmKos1\nBDZU\r\n=7nhJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"507081eee4cbab5ecceee39de341f8941d2d7b06","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.19.0-alpha.0","apollo-server-types":"^0.6.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.19.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.19.0-alpha.0_1601907799905_0.30419762864519884","host":"s3://npm-registry-packages"}},"2.18.2":{"name":"apollo-server-micro","version":"2.18.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.18.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"29fe1a9c1808581cc4ce29c2c45f282eb129cef5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.18.2.tgz","fileCount":26,"integrity":"sha512-QmWXrWdD0BCC4NZidskgdG81XUGuogf+SIl15VkcaZAO5lvmiFqLL372Q0qakvigpOXYrU77eW4iHk7FHurEZg==","signatures":[{"sig":"MEUCIQDkF8PYOWRCA45PMlCPqOcXxPHDAOLduAU2/5I/MAkrSwIgf8KkpQQJpzK2ZAWHcB1JpbKlaUdGGvtWScRLMR0GNH8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfe3B5CRA9TVsSAnZWagAAYkMP+QG/Ia7M+zoHnVx2XLhI\n8eyquMrMMY0ob3gnq6sIonYzKrjxWV0lVh1KAILz/0sVB8hQNyD8U5hGh2Fc\n7jaukyuW3zC/EwYtJN/MpHQTI5tPCmvFxaY0b3vd4EUqEmoLFGx8t6/w40Fx\nH92BiKzc0q3wxy8v7ppXC+1bI0WEfZ7kndMGZynHYsgwPeeOov93orE9ZQDx\nSi/J4+bk9FgyE4m2jJYxwg6/0R1DSTFaFcnQbULiAAKYAWvbnqZvJGHKuEu2\nKeDjBJrTdsS4Dl6e8iI+MgE5DqKK+skoXlyMhSntcnIt4r6HJfSJz+J0oOnU\nsIPQSyqqbwr9CacFo2bFY7OiaoE5W4CeF/E0j/VddYmecjevyjd9IE5BKD07\nTc7+I/okybIW1pHtTI3OyMQFV8JPFEu18cbU+duMYOaWJRDMdtvD5bohSXRq\nW/mXl9ksuEStNhcGlWaSn+KtTbhtjvJWjD9JXBgGGgH1CRriWLH3Ealssv2S\ndCwKZsjs23haFXwK5XThnQ/3EL9ltBUTCbGEwGpEqX278Uq21v6Lu7YSGM5U\nzvGxOq5J9SdlApUaQ0bM7mrLtfrcvhFuHjggdY6zCmPW3TOi8Z9+VaHku1WC\n+/E8Ren0AfPhEEsKYRaz2G1A4yoJd+Y8iey5vXj21lZzWoq8/gJwqNpjpPwC\nQGW+\r\n=M7Vf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a4786b2fbfd2ae60e1bf1cfaaced3f9c8d174a93","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.18.2","apollo-server-types":"^0.6.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.18.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.18.2_1601925240933_0.9517575111543803","host":"s3://npm-registry-packages"}},"2.19.0-alpha.1":{"name":"apollo-server-micro","version":"2.19.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.19.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ae9ae8a13354a3150e08da8df75eee39b1ea3356","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.19.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-ZfnFILC46eN7pVzEwqYm1kIQt7eDVmbW4T6VLO3f7i53sPmKWdvw0EPdAcnwScBfoQTHDFOPQ7b6s9GA2Tv3MA==","signatures":[{"sig":"MEUCIAjkvqUJ4HXz90uHF2Xrpw1STRtB687NKMp1jC8KaOvrAiEA3rkKf2prdP3ptnhoo/0duBSFTOnMqwE/7eyXlWFsP0I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjdwUCRA9TVsSAnZWagAAPIYQAI6NtSla/M6BUD0DPdhb\nfW/k+ePx/ZxRPTFz/nhJ4h9yjl2Sy+dWHwCoxNh7J6LZSMsdU2KEDhDaSoMW\nlRMH/YiBObdoU63ZQUEmKPAYlqyRTsOnyvLgieX7XBkIHa54G0h5GK7+LRhZ\n9yyRAyHL0HdUk1niK9DRjNWoDa9iNsJ6UEQfTEngxveS2+k5zJrpKbODbc6d\ntKmCiBEpDTg62qdMJs26b8WeLEF6oyyjiiBm/N0BUPXQLKbjr4ZToAQS5Hpv\nHh3wefEdO8rEnOk/SG1nll6A7ijgAdqwJJ9+SwBJS3j8vP5SlRNZYxUuEs5P\n/SuTk4iHrGpeXK2imMTqU55g4UxNhpIWdTstcbVGzyX1O0cS7oQat0kPpVLP\nDYLPC1EjnlHpCKRNDNdwxRY308Emsj0JjLay0SPDj1O8lj+eyh8U1j/VbX6f\nHgf2cBWZUzXRhjuBDEVP+rUdFZRndtPQiIsrAyfO6ncBjnOy2QvFYeUlbEGm\nUafsGScgJ3pj5bnJ62EOJ+3C8YGa+52awQxXYCv7rNVjzSkc0yPc1Byu8oH8\npcuWzeHL2KcZr3OjDLT3dt1nZqvEMKxwLXBN34DaPFutoN3gO8ZK81dreEeS\nS8klzRJksU7Lj9CW5iXU7qLjbexGmkCMiHmuFkj9D5OzZg+NBol4uOLEd1bq\nMJoM\r\n=Ejje\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"495f8d83689340357f6d8ba959601913050e35a9","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.19.0-alpha.1","apollo-server-types":"^0.6.1-alpha.0","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.19.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.19.0-alpha.1_1603132429288_0.06291008756870942","host":"s3://npm-registry-packages"}},"2.19.0":{"name":"apollo-server-micro","version":"2.19.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.19.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"911a397d234340c7ab4c9abb242c74503897849e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.19.0.tgz","fileCount":26,"integrity":"sha512-EvGzcdb9DM71NmR4plF8Y2l18uE30uaElb1LPCV57/7ZN0+IvX8xNPxXP9geoyngniPiZVP1kqiRKdq1OPAu4g==","signatures":[{"sig":"MEUCIDfKHysVMpDNb6r8pxccyK/czPcbERLENFArTOko7ohNAiEAr6gJ7zmEvOGt5UpGXm/lGywiD2bDtMOLxSx4+Nhzw/I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnHFhCRA9TVsSAnZWagAAgsUP/iXnsUdTlZajskQY7CiL\n8F4RMSStzu91GHTOJbXBEwY9zUplnXQOtrGr52dDuHZZJF4nL49fJ/z9zAZB\n+nUdNGnJrQn+/IY7BzW6LiR1d46rN0O9bVHuLHWZqpSqnufeE1rimZp9EW0O\n8NsBj3/feUfSpuDMUFiIvlac5ip3Hp1XdySid+p5AySyh5pDva5JuRl4Y9N5\n5B8czkYthP0JNPVph69xscL/In3zFtT6MXhDvtHRyKBE1cy7btq7HCnwmRyJ\nqYTfdAw8PqJQVmxWUG4vsoo5PAaPuWBkcTdAmAIrSM/AgNhcFjoZQ/TX6yT7\nONocQXI6WlQM4rmhMebnVhcsXl5Y6gF0SstDqVE0m9p8XDalT215rhlmet+g\nbNw+EfftjrtXL3L0im8tOHs7uZTfILMTvzrkV+YEyGFqs9Sy0JXoqtYQpEZ+\n/rJhgqO4/wy7psG4oX3Jw1u15WpPHdoC04tXYEWZTdwHg7Kzjl2+fzBaqtQo\nVjjgURFEZklV9LkP+73aFnyfOn8M4j+GNIBhv4jHEVD868rMNvZyTVokm9uZ\nfPQStriD8Et/Meopqh9LzGjI5z0M4r4LDEZSejG9B9pbmLfYCKwHVOBW27xf\ngNSX0OdgzjSOeIO3MeSK34oYMAid4M0dORZQBo/CPAYfVMvoGMBUNogJnTLJ\nk7+B\r\n=ASxl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4c6d16f14ab735ba0361057d75e51adb6790426c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.19.0","apollo-server-types":"^0.6.1","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.19.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.19.0_1604088161082_0.2769901307964924","host":"s3://npm-registry-packages"}},"2.19.1":{"name":"apollo-server-micro","version":"2.19.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.19.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"135491582c17274052995eabe069355231422244","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.19.1.tgz","fileCount":26,"integrity":"sha512-zHj4m86HHasqt8423JwR4xwAokuF7pdE/YLDdghy2+t5AfxRDjPoJOYqFK77Yk71tld+9bmeFTus82/H7hDgdQ==","signatures":[{"sig":"MEYCIQD+D/x70eVVO524Z6z4Hj1pUk1V/uEvYrQopHMfmmIK8QIhAO+CiVC1ftBLR8fPVrXgeamJanePlnIIV+WUx9lDIdlX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4nwrCRA9TVsSAnZWagAArvQP/ikzejHgPpWGI4v9xtUX\nd/uxY5JqF6JCfWve21P/KlPGMpX0u2yDq5CkH+b9GcI7a19670XfXtkvkpZ/\nzCLtZjJj4/JrVNKI3JSDtIA0vezm1CjmnCDL5hNZQHvL2zMW4u5Y+YGfSd03\nS4b5tHyw2HRsyUwCavuCFJUSHwKbMMY/cnmAYOrEXTRMCpoTVHFstG0g/8E9\nB8NzTtYrAGRBU4ZI/iDuf6NJ5VAz2JPoSFaOhtziPDWOpJj6/NUSMZn+UVKl\n0UCp444HEEAHNI/5gPtZJIJ8KtUrsYInZ9HwX5Gf/9XWw+mtVEphbfVfv7Ep\nIe0d8YodbHdZp+FFlhxETJZOH+2H80vMvwXCol+aZN2DkPCCwEBL9PaBRTPr\nUeZ3DxMinPr0syeTjWFxeHYh8ynteCRf7pmar+LJ/k0TJ8LhtkBGPCnN1F/z\nYjcLBE41t1KOwp96XyUndC+GYlaDORu0tkxj4wGWvndypUUAe95ESalttPh8\nlg89M9nDbGzCtPEwksQt8v4EShL36jjGkfaoRacoXYSgu9fDf9cz60cFzgIx\nM6LphWnec0F5LNPI8Eq4I35NysX/OLeGStU0l8a8jECP9SL5wi5nR5WOe7g+\ncSXSV9GNRVpJOemQpf7fTl6JOXZCmkiGvz7wbPYXi1gYVa45rSxdIBksKWUm\njWfu\r\n=PLPg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7e543ed5540ce5995b30b1bb2a7b54367fd49d6f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.19.1","apollo-server-types":"^0.6.2","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.19.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.19.1_1608678442096_0.780732965767605","host":"s3://npm-registry-packages"}},"2.19.2":{"name":"apollo-server-micro","version":"2.19.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.19.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3c47eb3199d55977d88746fa075ff248247bedf8","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.19.2.tgz","fileCount":26,"integrity":"sha512-tLFdqonWtgLJLa/KCOYvST7ktOVHMhhkmPQ2PLUROxBzvLjY4rF56bwOMkQLGZCljnUagAKYGtMFw6bpgHFRhQ==","signatures":[{"sig":"MEYCIQDhf7UUvVUSziLgg7YXpQOAjk59eElqLLWkjUoLYp2ImgIhAJZ8Az7bTNHk9qz4J8jyDbFIDsRG3g++Vfm5ff9k/Iqz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAHaFCRA9TVsSAnZWagAA0aYP/2YwdZJomTEAPakiacs2\njIesW5v1adQ9mZ/ixdF9k4jojSRCyNI//ArInahmx4TFk8QKcJ2qdo4mG2Sg\nakVqKddbT3y1cPobGfhr7rUpagJKoHjJHH+8+K8EDDas+q20ONYhABQ1Gn5u\nebu7Tc80vqfvW697JBIl+/yu0mo5JgjjoxUq33nGIz1RTnxBWHdq0htJL6eS\nscyAg7+5PA9I9hU77SPMrBuH5Bhmpa8i49kjbzLQhaUQY9HTh2wHHzMZc+mL\nA5TGrsnRxtZ5BFifRsX9wAdfXyg28JArL8/arKLXBI6ZhQVixmnOjTivMXFd\nBKbHoHMkieH8nPIN15vUnlTQvfe3dH6ctjfhVvf+FnknF5/Nii9MJSYWD6XO\nP1R/mu4DE2m6ptnff0wtcZnt8almzZqBDfTux1MNFXtJ6LnYZMlEkwLK8i+w\nR3WRVAj+uB1P64nCrOzi8vLsTj5g3KRh8bWEEuHlBdydmkH7ZbRHguUZ+auz\nw2pL+T25r6K3GE50Ks2/OjQm1wEDHk2DxTR9U7jOKF2oIV0Ei/jRYvubYMCD\nWgDAiVfPOHvuek4q31Buma1pT1fLKNvf62Vxzz4BUQfd8300ArVz0jPojtWj\nNYZyHeu7hhnpxp8lAYJuwyLZXRITPiIUrwW9kZcJZgT8dA8Xh0UZjaSVArCj\nL2pk\r\n=Qhwi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c212627be591cd2c2469321b58b15f1b7909778d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.19.2","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.19.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.19.2_1610643077179_0.15442370356075497","host":"s3://npm-registry-packages"}},"2.20.0-alpha.0":{"name":"apollo-server-micro","version":"2.20.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.20.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"64c739aa146244cdb50fa940e3235c5dd97b2f49","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.20.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-BghRMJziOXKrhoryiUybgOJlgULTkFgeE13SRtsLSLKp3B3GRjvGTv1Z74JhMndU6YCHBNE0D0PAujC6N3BB/Q==","signatures":[{"sig":"MEUCIQCBKDbY9KLDtqyr4BGzw2lSOqygauNQRItJADimtuW6CgIgQFqCQh8LqmhUj8vyAcOkj6KS8S75xvYHRWpum4KYIxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIeE/CRA9TVsSAnZWagAAPU4P/j5aeSkhSOOU8J/XMSIG\nBz1WkscAKPvZDqG1bx2Tp5qASQhut+MhMbABFmsARcNAXhumjccaVnRyyxa2\ndhVGa6WrJBcxv24bv0DMeKma3uMaQbrr0OayBvj8NPVfDYQ2E8i9YpY+XAH2\nxi3bYL6lu/cnA5WRqmOQIPxWquSurFznn2bD5PyIHs2tu9k7NaYHjS9ZKwTp\nvl5larEEEKe/IB2iQvli8FtxpV5fqkAhLOh8y0muw1y+jWjutB0wiFMGDwh2\nzvuoUzs+URGTD6oFQE4iOuyBLgQYK6uBAcM+3o0gdksw+igCUK/YW5v2cydW\nq4ZlIM408XZ4XpLAyTB7CHWD96Vfz61aE2uBzJnvL6n8/ruJ5Je6BLYEUqoH\n2QNMHI5ECNdt9wY2meoy1dOBh0M4Wqtap1luuyM05XgyIve1IvkB7jdPf6bc\nhSyrzcMLQogU6nN9LPW6LocjCvSAsTxuCNyfxNTd6+1Gokx/cs3LdhnjnzvO\nNKEOjrKNRS1QVfoXaWNHgEbxoRj5w7XmdhC0zdUAeu/rtQdQU2pQmw0FhWrN\nGeX+hmkcT1/61f9sPC/L7B9gKXLmIC+eEO9hQu1J2UI9mtr/AdV4sef6Xmcy\nS0cwxpINtyJc3URiLDkfLrmsT8HFW6FEI7/aerhT5iYo59xE9MWQnp8vy2XV\nh/1e\r\n=er8+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"d18b7a94a6984017955e117060738f190b6f604d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.2+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.20.0-alpha.0","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.20.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.20.0-alpha.0_1612833086558_0.7578155380112157","host":"s3://npm-registry-packages"}},"2.20.0":{"name":"apollo-server-micro","version":"2.20.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.20.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"055bc7a44abea7006566116b112e0a8654142e09","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.20.0.tgz","fileCount":26,"integrity":"sha512-3+XEdDrw/a6J1XfUhAghfVcD6snXzxxheWwfrRuF2OI//isaUmWxZzLk1+OsdAYPOt7Dch16a+cucvoxh53Ajg==","signatures":[{"sig":"MEUCIQCo/yFcRYthoppRJkgsvfm3ShqMYUtabL/MNt7J6f0toAIgWx4Viv5Do/sfnpEthSHUHLpsv+dy1ywToCzB+npsbh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIxWACRA9TVsSAnZWagAAH6IP/AsDfl0GXgZEp8cCsObD\n7Oym9APyIOquP03urO80E5MzcIxlWJY6bsfv1oun4ej36cSHTiRm5hz9YrXd\nWqb67Di3GL4PqKEPLw3T53GnrZbzydWzb/gcCNqFljKm2yAPdDHV1BJArcoQ\ncI1NH/cejcmyAjViz0gvT2re7OF7Ue8pzLbR7kUhe5hNEdRbPyHnpC67A5z2\n2DiM0s9f2WSXdBVfWF7u/Gib1knmdxqzjNAt1VLtNBTLBrxes5DVp8hVU2lX\nI5meh9B+BPxgD3crVyJbbupM6ycaajpBdagmqeVecWATP0XVYBT8bWuEa9WI\n2txezetoXOipy21X2nkxippajLaLwU/d9wHAghrSKHN+/9bg0Pfrv0qjN/el\n3TLZeJSefRqkrW28QZqcCH2R69Btp1Wu/qgtIj2CtzEbdMTLfzxckXFDbyQR\njGQQWRsDoezw/NuAEdZhwhXVLjnlj4htZuinYz8TVuzOgwuSiiEfMlmQ7sav\n9W/wvHrwtUhqggnI+K4OB5GCZCWxyDnFhB0wSvPwgEPphnqI0ISghvV7r9qq\ndEIQmF8SLsibIoI0vighHeC2G84faYnCUNNqAKkZF9QOKld6aHi7/sltaw8z\n7ILAeFwgeETzf9pFF3y/s8Mao/CHi8CFWYsO7Ze3bo0vMwABFGcid4+JF+Nn\n+7Qu\r\n=Qc2J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"baf9b252dfab150ec828ef83345a7ceb2d34a6a3","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.2+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.20.0","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.20.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.20.0_1612911999771_0.29138475705959266","host":"s3://npm-registry-packages"}},"2.21.0-alpha.0":{"name":"apollo-server-micro","version":"2.21.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"37fe69b8444e2cf851ed1b3df37015f057364e82","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-LUxaTV85qbryf/ZLIjfji7T6eccGr2Gx0pA3dfBKZXvPw9YvO9iJgkDIjzX8oEn2CB8Cu6eiYK/Y0EIcwwKvcw==","signatures":[{"sig":"MEUCIQDAdjDm0HiW9oPJ2ygxnQZPoxPBskl32jCYt2S1ScZPAgIgcoxVBnP8vrO3Ir3kdeX0qxgQA4IvJtNrHJVbQ8eg1BM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJYKECRA9TVsSAnZWagAARloQAIU6OxvaEDMRN+m2FCJH\nD/S0NQMKM8/oJ8vFmi5W5u997pxUeXUeDaZQWkhY2Vh8PiD2PbiakvYeKk7G\naea+iWQEMVDkwyoEvDdUfAPh0FTqI8UPJkU6ULr5/Ctbr3kVknFDI78Fh0dI\nDzB4IKxtQ07wvSGcKE8JKunlLnaQGcyXPcLPiWyL+kQ59EJHlK2oC4qI9y2Q\nRDee/dPbQEYPEwcObSuglCvLEer+g9n8zKrR2YsMB5UhmhT9rQH7So+ae6+Z\nxmZmzzZHrFu6g98JGBkOCwxenoHrchDmmrxGU2iyBF4XiI2Qt36yg8TqdjNp\nn0D20weDYKKZgKgNmaVoxrtF6BwUqI/n+N0PV7yqlV3nv3DBUuJUSOux1rS9\nG389XVtuEcknQZKnh5aKiQPYuMPLNB/uuV9nW87t07yGsSlcaYEUXEtoiNK9\n0tRs/aI+I2A3RDg9+sh3LKqZGJ6TR+DMYHQkp7iNs2WNU9ir+X/ttZTdhS7M\nIW5dNhdz/J4MrjC4FANdibCpQcRddYcbykjSvrXlCa5vplceqiMATQ8xELjH\n5GO/ifvNA5xhCIfr4YsXvcaj8QaToJFmkfNcHF43EGm34+9cya1pB8/7jyum\nlbsTOzS6szBqwsaS4sFxKzEfWG7AKyyZGgW7kofGsTywMXVZa036obGFg0vK\nalV7\r\n=UfIx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3642ce88eb6b83150a90428721dcdffd5bf48a4d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.2+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.0-alpha.0","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.21.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.0-alpha.0_1613070979987_0.8678220703402513","host":"s3://npm-registry-packages"}},"2.21.0-alpha.1":{"name":"apollo-server-micro","version":"2.21.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"706b356130eec06a2df4cfd9164bc297902297d4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-98yWznPNzAQuu/1OwTQiCf/JI24f8agGZqKIOwUR13nTuxdv4IsANw/wOJo7c7kmUSlunqi7gLPUdznYjBsTtQ==","signatures":[{"sig":"MEYCIQC/7RMWMTltGlDpSDXMh4/tO3vNqB4oda1GfGYGU10s6wIhAJCPIN3cxUWZS8d9MaGVa13EUroGe0ru7FOHjHZhOjkx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJYs5CRA9TVsSAnZWagAA+xgQAKOBx5ZlGAdWUCIiuYjK\nFpLqV3QnfBwP3GS5EhyU8HdlrQN7Jo2jlg2YKn+U/XJJIbLWsk6Zkl7bpiDd\nS9ZoV7aCNb8/akZN8+Vu4CLXYjiBYDzCxwBu9FDlOcJWMLimVTF/SgO7PGzb\nQ/cqUzDIBSGSDN7DW4/8PnR2YMBs+3i81MqfctFXs07A0l2U1JYnF6IcyffV\nONgza41fEZqCrJQUSDo1kmgtZB9dopWMMNJYws9C7bNqMJF0vLEgyw1qFUvw\nx7kkBvv7ofDqe01cPkPpDIoiIwa1weWohwD1yEKBm+G1rJoWuej1qS/YHvkA\nP1Bc8crSuGL9k6uE4kvVdH2LhVnOen6G8nV/diUSvTtlYZPn/fNpr6CavS0c\nUFEzj/mfnD7QoJqKqTBBAptA1IdsnBajO8ZDSa71fvhUcUuTWKPms+bXADIE\n38JFudLt3VzG5dVQGpGoQzL6FWUecmDR8iZiPgZLCUTMWd78bENq3qiBUe0g\nH/W1JeOH49tbrbgORKsTL2t8secSt6QlOAvdT988iFpXLEslSFLIesNE4ihg\n/4dgiFsbqZjQOupU5EhKLzFGHVjQD0zPBv8NQZ/5KjJbQFor4UqeeMX110do\n08g9y19zQ6jIkAP7gAlhD48BBRkQqLKJD3ycBZrcLR4tXPdQaV/R18lLcBXv\npp7m\r\n=YCwt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"26279de6a638ff1e76c34bd3f9177669a4632f83","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.2+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.0-alpha.1","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.21.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.0-alpha.1_1613073208825_0.5642033471037775","host":"s3://npm-registry-packages"}},"2.21.0-alpha.2":{"name":"apollo-server-micro","version":"2.21.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d315735b0c5cffda2bb595a38d5d86a05a7d3921","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-EcZUUzHCfEXvTdCIizp0P2FanSIjLVRNNc01Wl6LyNMVqaFngAPo74+s6MpXTEP5x95V1/cz7NiY9uwzbAM6OA==","signatures":[{"sig":"MEUCIAy+mOItGbRXEs+Vd3cX2exnwGgjOUwUDIEEJDwOjRFiAiEAvwVK69NsmM0rgdhDRAwhu8alLekLIJAwNa2be7pN0Aw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJaYlCRA9TVsSAnZWagAAYeYQAICKLWvH95f460ImrrsV\nR+OQ9ABRXV62yvZ6wW+U2ki1hHDMP2S5L+aBx5HlhMmW10F2ZfJV/Ubgf7Kd\nNpy1khalxaVRUa4eGrH5TINi0UBumyra0mCYJypDXki5Xy7WAuZl9+WicLx4\nPJaBXsTaaecmkMJ2FBmyuEwtEGu4U3jlqPUqDbgcycFJx3/RDWtCh73ZZ7mY\n6OGya2xdbrKH6radnNMtOzt4s4fp88I9L9uYswzfiApNtOjiiTA/nYYJg+Yb\nV3VNuOArByJ59aiua8rZz+SfN7u24Ma/a252RQEySYrDhLbYGbqfKlDoj7+1\nJIo2Ef3mKdGcjaO4WT7nJTc86yfI4GAOuf1Og7c/Ij6TbI5N0CMwe38Ff0uX\nylMtAP/UVq2oWSnqOgowg6C2MVPJYRfZEmJ2jQ9bm6GBfg5Y3mvKR/hOaewc\nh7+AUIqQMZHSVFSB9FksswMqdg+uRqsPRNwvDIve0tkYkbWuOWpSdodjYYBM\nj2UvMGcb75MvMHn9/Y5SELk5IFXV9c1eXtbgK4np5toW6SqApl4W6tn/czwU\nE0bNnGUjqyN+n5zDCKBYAW4bEbJZ8Ti5fKdfWxlW5PGIdSDiVcHwXPTOmjS7\njelvem2iidoG5n5cN3Dd4RX5OZF1iQgO/g+OOef7HGj1uWgHetoVj4gZozIJ\nA2ok\r\n=iZLV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ae81d5546aa73e5328f9b08a4166d7e50d8f4f3e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.2+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.0-alpha.2","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.21.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.0-alpha.2_1613080101371_0.20962752247642413","host":"s3://npm-registry-packages"}},"2.21.0":{"name":"apollo-server-micro","version":"2.21.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b0808fd8a7d4a51478c44dc0295d6e5cd9f4d3d4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.0.tgz","fileCount":26,"integrity":"sha512-u7rjKaekF/uEx/aBmaOUohDtdUHtAM2FPJKcvU82BW+cH/ab3kkZfJWclx6Gck+wT4lTO5t/tKXdonFQzxIJ/g==","signatures":[{"sig":"MEYCIQDOJc/HO/FPet+eo7X2iXaO0F0MutmXKqjQBk7IFGHQJwIhALGpP5F4P0up8TovBP9mUbtY9h+28tcKcOyjh0/ZRPq1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJeCCCRA9TVsSAnZWagAAyvYP/A4YhxOad5OohmRJipmj\n4V/R9JvKWKxZyhnPLPV14oueeZ7Mp+qtXPBr0MeLRHdBB3y8vMhgvB3jC/ED\nWgNY5JwiYPzk6QJYh+sYpkQBZHXl/XlesxQcr+miQTsueuG/AcQheaWYFenT\ngWEDQT7pDWD0JYILFI3q5Fo5iD3k8ISIIwQY3DeVtHHeXBXcqzlSL9nWcE5G\naYFU7PDy2KCtlXbH39q0a2dKz1EJKxBQeDDuVekj1pw/83CNKNylntbyQRGW\n+UF054b16sskV2/wV7GqkcX3uIsiGzGGaUDyBKn3fGoZfoW8iYoKK4UKWvM4\nXFel7lWLXrYc1yyt9MENaH6in46w2mu8q/7LUfRiXj58Z5P5N7FzVF8E//Nf\nRd9le5zOFT6NDIWme7dujrSV+r6uwrhjxb3kwdeinl8T8tTFzEOwlt6pD6PY\nUB50JGJ31hLfIRlSlrviUB9GmpacYU480D5gdjyDnLcN7X/rne+rakTOzTN+\n1KBcT9n9sgYGCR6uLXJjxV5e8z3KwFowzDeKsSPqWiZasLzfO1ynKscF8mrs\na/hYEb868MX0iLNv0n/R4mHbXPHX22kuB00Ji5two3qb+0oXde6eOV33qgB+\nZc4IPu5e/DAOr6BaioWrFJlZ4vbwmucZy5Lp0ks+7W/iIX5KEM96PcBwPctw\nYMat\r\n=Tb4n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"456487f425d3504c1b1425cbb7c954c664b0631e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.23.2+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.23.2","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.0","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.26"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.21.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.0_1613095042228_0.24848255179277623","host":"s3://npm-registry-packages"}},"2.21.1-alpha.0":{"name":"apollo-server-micro","version":"2.21.1-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.1-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"85f73d8378c1020dd86bac55ac35c6c08e00a391","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.1-alpha.0.tgz","fileCount":26,"integrity":"sha512-p9K4xLJze2qskxgJq4PBk1kqgOe06s5GqcvgSEiA1EfHYq/yIxJdrL/UUzFrCZbIpBhYu06TVX1JCapONZb+NQ==","signatures":[{"sig":"MEUCIDOGf4cDSB9IMlMsRZWXKFsjQCLqRp82S9jbJqifNFYKAiEAjDbotMbne4+HBpHOTqoMUJJKU8lgALUNvxrD4T+eEoo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQs29CRA9TVsSAnZWagAA2DUQAJBRsXU0SyrIynpbKGMS\ndmYYt+tBu5+HXx4vTIWZdnByqeHer/j93yrKpAnvIx0REf2YSNfuaBvADStX\n9Jaa2fZPuUg9frqdzyJMcsumKytCzjYxRtxcg151ocJRPAWvGosTteJ/s11K\nwYNUEVLvGJ96+oA7A2bvEr18GrOe9q5tP44zMN/yzulFyX/7ph8R+TfmfFPb\nl+z3EaS6rk1jy5lPnRibXQSVNi2EY+Ff6Q7Dwybnxua+MnxlP1IKm37DdyrW\noERy5b+9kcvFP9SL1dolmBq3H8VfV9+a52vTjf70qWmiJX/gGoVg03qPK9U6\nCrseNSu2XUXr3+K1DKLgEWF8K6pnwAb0q+8Q/ankL1wQYqgpNOsy7DiXQgGz\ngSR90a6XXIhFZ6fkpH8imQyGHLJ2C9+GCQBYHsRTowbnV0os+7f+mfQwq/gL\nodTukuRWRE9Mw+Rv9SiJhWRem6bI9tK1AQKSoPk0kor8mBTG+gUBHGlXJ1nq\nfK7ecVO9EVL9NUGWMsn1P7M96f4O5ryTdZUpQ9bI/1gcqKlZXQDNA5IwTnht\nl8wkYFzfqVr4BETMLlgoNRw8RPgdmlhV2xOq1J89SDk5GKjGTHkE/L4WuCmF\nt52wEt9azPE+f0LThtVvhURJnAwAZXoqFyzraIZAlCPLP/7UUQi0fFu4jReF\nUQss\r\n=FlUu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"2397291e292dc92b378ac6628ff8d291c2006a68","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.1-alpha.0","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.21.1-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.1-alpha.0_1614990781331_0.8846503600776681","host":"s3://npm-registry-packages"}},"2.21.1":{"name":"apollo-server-micro","version":"2.21.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1ff4e5e6634f3101c6c1b9ecef3acd6ccf6ba770","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.1.tgz","fileCount":26,"integrity":"sha512-qLeMjf1hZOpAFRtycRyMUlMsOI9ykZo0Awno693SHlfFYIXCxxcX4e4EtQUrXKJ5P45IxyWs7swue7wSRS5gOA==","signatures":[{"sig":"MEQCIGQ/Vyo5t/PgaTiIVz72SKQDPvhmBT8qXH+mlTFAyVZ4AiBcWfboyNk8Nnyivns0ubmDZFcjiajo7GRQTb4qa2IBhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRmx7CRA9TVsSAnZWagAAhsMP+gJBWY3YLyfAQgMLVn6L\nMBrPY79Lqpr4Cs5b5D1E1f7TBUvyzyzhMiyrzTegb7qrJljh9xZcFLNQieXi\nK/4GygxukObZKKivAF2L4E8ue5D/C0UNCV2eJXV1w8+oUI07by4nRozxxUc5\nRNjnfaIMC+HJa8mTDLAp/aVGZiOQkosph0mhcR1sMQ981qIbF34uNetsoE4q\nJysGIGXf90eRRh+BkUXPIqLVcTZG5lpob75DtiHTvuad/0LxhTTJzGixJdO5\n0DYxPzdWqmdg+YXg1gJz3jqnUGtIqfCKoBcP4KsMZx5p3Ma2UJ5K9facQ9LW\n54U0O5j9BxzckQMacEa4v8j27QQooygtsDOGiK6eonzW2LyLa83635CNR3PZ\nN4eKFcXYy1xcNs1oFj1wm5FIPhSKx90lPlo/ZBEAg07o9ox8qCD70xzePeZl\n+JpW1CXYoucSvDp0S816J2jPXHEywAzVwtDFrA5jCGFP15yJF74DbEI0w686\n5rHHsG7H3N1Msg2NEYYc6aPh5XnIz/rn+1oXPaeaCBgRUwJfogzwm4KhSLk1\nZZz2/ysvDWp4EtmbHuhtxaQ5d91VbCgdOJ+czxz0ZOMMTX/yQVGdl2Vs0LFw\ngH0ijEnT2eC0ggo94PQBSTgPuVirlCK0+KtmLNfJ6gvPQvaauBk8+SaOIdrP\n/PIl\r\n=hEIS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9941c8f027cc8fce6a15f8678629fdc5dab4c2d0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.1","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.21.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.1_1615228027189_0.1943287850794584","host":"s3://npm-registry-packages"}},"2.21.2-alpha.0":{"name":"apollo-server-micro","version":"2.21.2-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.2-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"65c227731b8decd5b72c606cc58fdddb3f61c7ce","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.2-alpha.0.tgz","fileCount":26,"integrity":"sha512-Ta0klRgC2nJxKMcL3DPn6QyYAnYrv8wLXNlxDNFGKlN6CF3tRwjLuhgDr/UfYQlaNO3Tb1AHUXzy0NN00cAQLQ==","signatures":[{"sig":"MEUCIQCXQAwhh1RiggHe529aNcEpD3Acgj+IOn6SfX7Y1Jp8xwIgfZawCKBDvUjD7LysOJrYVDdUfc/QqjqSBBvYxK1w43A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUSShCRA9TVsSAnZWagAAqqkP/iYozoe57NvlXeUkGpVJ\nqeZywos4zDGbVGs3F85f3SeQWmTN3A+QyrSwZUN7omVnOAaf5ct2fWfShnjC\ntuE1x5ubRBOpEtRDEElMvIaN8ceD9Vp+bqV02uDPnLrF9zvpNgF05g7Zoyqm\nnved4aCy2WVWS7aaXoAMR/fgNknVTkVR14A1LuYwF2IOXPhHGzoJAc7yx0Bl\nGKhxP6zHP9XouQp5mN5gW+THLbzBAQL0k/dWtpvLUM9Y8H56jIyvxeUSpwzu\njR8Xm8ZVXTQhCeVzfsveqtHkYeQjx+8bAvmf8qgnN7dG3UCUhAg483KdrmLv\nwz0c0DXovCCjqXTuKRNw3MBQ9lhlcJPV5S+GXTGF0aZsY1aZO9o4NyZDeEV6\nEbOxfSVCW01+mGcL1dJHpk8/aAsvdp2WjDRCju192i2pasO+hKwb4zPVF7zl\nEa19Ujg285FZhCpWw+0LSdyyaoiIAWhy3vox/ETpXqMjt6Mg0y8hVFXvbgK2\nMApZw6zdPyfBKOwEb8HnNXtUiNa00iJjQRoFy1d0i5xBscEGVc34vkvpUp7K\nyX0nqxDRewkcutbPJ9WuFhU+EC2zfIbdd4df0StKoib4hJYlatJMHQkpwcA7\njBLwCwxx5OphsL4XaopwmFuLo67ATAcMC3Im+sKnF+8dpMpUzPfpJu7Uhc4U\ntouP\r\n=YrRo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler();\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst handler = apolloServer.createHandler(); // highlight-line\nmodule.exports = cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.createHandler({ path: '/data' }); // highlight-line\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nconst graphqlPath = '/data';\nconst graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\nmodule.exports = router(\n  get('/', (req, res) => 'Welcome!'),\n  post(graphqlPath, graphqlHandler),\n  get(graphqlPath, graphqlHandler),\n);\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"2f717937413c56aa66470e76c9c8c423a95b67bc","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.2-alpha.0","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.21.2-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.2-alpha.0_1615930529312_0.30178683273125406","host":"s3://npm-registry-packages"}},"2.21.2":{"name":"apollo-server-micro","version":"2.21.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.21.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"06d9a799bcd4246009e4a80c02a7ab55fabeca03","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.21.2.tgz","fileCount":26,"integrity":"sha512-ABfBbOxPa+csAFkUQCkwizcm4lxqy4tH9eY5/6GR3ya9ZKnXrZI5ukrWQsTVXbX8jrPxP9bT6yOV48Ztm6g/4w==","signatures":[{"sig":"MEQCICg0ODnCZrV2RuUWnu9wwvXwGA0neAvrFIbhu2dPnRgNAiB3wXGpsV6/Khy1xsbh/DCixUw6D7FD5EVs8RTr8Grviw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU69xCRA9TVsSAnZWagAADDEP/jLz94KYRpr/9EphRnmE\nxxWjprP2E0O+eNTHCvLdtfYW9MT9u5gdupbB34Q5qJEm/gvV+HMFXjt4yo8l\npdz6YRUNJXl8hQUsSoPEsYrUkF2wRdMBj24uO8IdH1tpV06TCXbX9JHqy57Q\nJYfpuLf9cXBSuBv9CRTJ6J6iL7jI8quOy08wlEwnixUZ8pGYf+A9NxmKvj7h\nMVSF3q7u3t0gBAdt0pC8q76WvtKjH0iss74c0SeFalM4vle4Q09f6hBEg9S9\nTVi5vDO4WEHNc+hvTPsFZfg/Od21/VnBUBTSJZH6UFxtji3quVzu497NIO9N\ntGuLhufa9j9DAEedPs2ldiiiObVrpw8XsiVqHcGb8zomxdL4BmFzLReKBSAt\nx5ZIm5h+wg3XcizUIkrkt6fo1Aq+nMWgl5ar8MOSmhfwcygXCFRWTB5kHYmN\nI7gbhqvmxUDXLAi177I6VB79zJWEehI/lEZ5WSVBbauD37tcohSo3L+GxaiT\nOW0yN985imVTx1/HL4/q2PlBR47Qm5EhWBjVca6WoGSzeXIYt01IeyYup+HC\npLJHyoZWSKQUrWJH4r3+ggXaMHpNA11PBiJHohoCg3TVfQKQvPNu1EIYZGzj\n5GXIr44F0yxoRHyEJ36NrWYJnwH65lTSjJNDGCjJ9VxE4fSPSW9Li0pGskhj\n8zSW\r\n=qPrU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7d3593d2c27be2a74cba4adfb57894856d8fac81","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.21.2","apollo-server-types":"^0.6.3","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.21.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.21.2_1616097136572_0.08692847047320229","host":"s3://npm-registry-packages"}},"2.22.0-alpha.0":{"name":"apollo-server-micro","version":"2.22.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.22.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6c42b99278aa513614c9a9aa6fcc888c4c311127","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.22.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-7IDVicWWScahSQ0ggw6odv6LNfqecDfZlXuNuVnc53HHxlMmK8icIvQwmMwXdp5PDNZGJ55s3E27n71qnGZLbg==","signatures":[{"sig":"MEUCIQDq8iHni2wzKiMRG6d79yaoeztQjZfmcbi4TnVtFNVjAQIgf73aqLXKjyGQ4w5NXv2xkuFivaajUX/wOq1sFeeFNd4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWRMwCRA9TVsSAnZWagAA2t8P/17f1A/suRBaWXISX/Xq\nnulwewmABq4uenz14Y4uIHhbM+aYx0cDxUY2zH5F7O+pxUNQjgk9KwLcgfvd\nE8VYQ/lZj4vJAsMW8ssOoVjcONKAuj2pEZI8cAiCdZenXxN+3gNePTCc0vyW\n3lrdT74bGRN+DByYcRjA98zmglwplK++VzhNw/SgBQ5HLHYdLkA2lSoeQQgU\nbNtf70BRcoDKIrQTsdVZsvKzJ5ojMSoMAc4AcBD19RGG+RdjuFbPcfta9INg\nEBqLnaAY6u5gzLQ7Y6IEiuSF1I6Z000G3j1gVyBKoj5R6x6ROyr92Bory3ab\nef2BzP/DerNV6zEm7ZLA2DWeRVOgKxQXpvk9+K1n1q2HvPXA4i0exZ5TualP\nrABNwhwJLMsjN6Xs59m+WWYi6YJJDKUcV8GEgDoMvH9SDo+c3TGNBf+RWlyF\n6r7XGOwbp8XO85G4oOraPFjaJ0n/+24H/eCWrI5NfT9fR6VqBClUwtd77XG5\nGgFkNxL3wRsuw0ojnRQvhYCmGS6ZotbtZlPsdKAjGchVFvLEVe6DsMxs24xW\nFDrnXHjD2seLM2q5yIQwkTd2M7bgL/WFc/KDYwj8o0m3GOdS48udDDclTgim\nW0FrFBcmYq3nK9No8L7DVKVD3BY1wKmxhLmo3JW5MMlzHie5uKGwQx+oXkl2\nkCk+\r\n=mAIY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"1682a2566c135381b67310922ab7fba44c4f0644","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.22.0-alpha.0","apollo-server-types":"^0.7.0-alpha.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.22.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.22.0-alpha.0_1616450352230_0.7236396354088401","host":"s3://npm-registry-packages"}},"2.22.0":{"name":"apollo-server-micro","version":"2.22.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.22.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2d659a35f468d2d3aef8f26bede0438da6d0719e","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.22.0.tgz","fileCount":26,"integrity":"sha512-0+hOOF/kUJ6UjHUIOw29YJcbzN+LOKmJaXry0YR1xienF//iTZYJ7rCXxQVP4xElRG+Cw98TYqAc9S8SPK6Etg==","signatures":[{"sig":"MEUCIQD2NoZy0AvB70D23Qkls0Qx4GseFU+px694BiufamwPSAIgcjKVZhjqMS1G+1DcAx8PV1QYX2xGuJFwCTJuqS7ftkg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXSqqCRA9TVsSAnZWagAACsUP/R/drcnr9N1hc9YgmoH5\nkXzWWQ3i0eD8zVTIWnCHrD1ClOOukfxy6VVfPcxHroayvxPOIcMqpuASpuCY\nXO2JcE57IAII6uPF3/CvC0aWarY1SPAubKTe6pOmeW7eA8qloHWY4NKbViJW\nabKN9F0xV49x693A6HqKXrAVDr8gPQ4YG2VoLdkA3csdxDwomMnnKppzyk6B\n0EKPW8yccv0Mt9ewcaUk68f3I2/7n+7Gc2tTBFyZEh2Vgx5K35ftWjYqPXua\nOitrqbV7vru/Ehb0zIETpvrFC7lbeWAuamBKFcYBnLJdUbbf3pfqnvT9vU5+\nBDzLmdj3g5ys/UHmW4uLPnWinfzr9fD+CvSqKBqDNhmPLr7kmfglCa6XyMvm\nkjA3TXyANhwxQLzWSSd6+9MwqpPNlzpf3kcEg0VaAVKKmJFYCRlI3uHBYroc\n+Zr2bBDB182h2h4HB4QtOgBm8OY3QsabiRysuSjw9OY/GKaHcvSSd2w9slOs\nb5XNqcNI0NEwUSNswK9wcMOn/KqzZ6s6QTR/N7QGm+t+GPDSdbn3yFYOU2Vm\nGxqOL1lpEz1+ICCINmwwPe1aK/tPbGDF/La3ks2XneHwscP60/sxWc3d3yDO\nMptoXUONjnathjeyraZ26w6yG7qQ/KdE/qUBIfJpVSgmMk65BsKIxlanA5Tm\nh3nn\r\n=2LeR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"93499e703a375ff0fbd128138e46b574074b44e6","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.22.0","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.22.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.22.0_1616718506326_0.6098191223011271","host":"s3://npm-registry-packages"}},"2.22.1":{"name":"apollo-server-micro","version":"2.22.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.22.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2d71eed7339e2620b350d84ef3d70b4aeb32dbf0","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.22.1.tgz","fileCount":26,"integrity":"sha512-D8HY95gYDRzx6sDgwooft0bo1Dwu2MiSHF2WXQbSwWlUu/bPq9sclbH/rOnqeMc8IGlWpYd9KraKR3LTif3hUg==","signatures":[{"sig":"MEUCIQCi6jyzyGYgit8bbsZ45gP4rBaCWZXuHQ4kP/chukWZyAIgL5h23ZmPdULKAWZhrHrIeAMCOCjCR11lX6aTz2nj1pA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXWqKCRA9TVsSAnZWagAALp0QAIzInDfKmzw7teIaJHMk\nSSjTVQnhdWggt9R+jiGUbyzIqFdtv0J2Vya7BKkiljTBONEtBw8XthxpkR5u\nqWLBlpxrPv88PeDUdZY8yGx6iJKwD3DsK24hlsa3ak3LWS1tgh+0k6EKPI99\nnwl3wO+iqdx8/kTkL7PuFkTK6s3GwPTC3b6KNYlekI3iE42pEIHkxaONat8Y\nUpjoo4QFJLdgAi2eX2P1V5vGu6yJRhH/PmJ0wvXPUTGSBknfX6C0Xgpg0QyJ\nSEKF1e+VlTrf1mA5C/Jp0l8/0m1GkQHlgb0m7BGHLXjJ27sWRaZNAv+GNwij\nrgYMY+sogH/p7QyK1sQactDfBVnSlNdIoySAgSXq44zxEurXUI6vjUrihZuy\nTt81KHDAcNOa6RUJ3DW1Vz/biIStfR86RFoi5Ck1hk+qSn/Dv2uZccZXg9Rh\nHAHhnPFWoTJIqJUdZagVsgD1xGgVBaa18SMStr40P7XauzBGqJkPQ1+KPD7F\nV/l0b1FZpK6HIFyK7/rFZJNICGSlEBUya1iAZr4k8hvAJDrh497sIBGtK+C+\n6NwWrXQwMRhbPiKI9I2A/zen+SSzzKfI61qqCVZKzZQyUOYtTptoC3Dz8XDk\nZeDOIQfuH2yzHCWYPdzE23ZmB1A4w8CC9Rn3KBpS4tXkIriG7FRdQnBbgxwr\nshvG\r\n=glbh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6ad8f8f8ce743553d99097f77aeb7fdd4a536e7c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.22.1","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.22.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.22.1_1616734857577_0.6721851789263633","host":"s3://npm-registry-packages"}},"2.22.2-alpha.0":{"name":"apollo-server-micro","version":"2.22.2-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.22.2-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5422f2146bae5b83c52dd7a0a9670f416191492d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.22.2-alpha.0.tgz","fileCount":26,"integrity":"sha512-Jc3WuLvF47C9IXUpWGMtnJCnhPgmD3MNz9cbEyBg3ZWv7Q8drD1nKNmeQ1FDT8vSwxcCrdwKHS3021mEfOKzQQ==","signatures":[{"sig":"MEUCIQD//d9z6ta1iEOeYg/UYjU+zrZYIxJl9CZrmBUf3hec6gIgBRTXLX/KOO1157ofFG+1EqTlW68gTpCMa06w0T9wtB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYinKCRA9TVsSAnZWagAAOtEP/RZpvx82TxM+svqbfPBq\nHWXrE3My2b682/+jqerF3Y17ETPAluV7aySwezr0vcmvZIveH2CNQxfPnHHs\nhLe04gtEJbii08zjAxpNcllPk+gytnLixBGDTs8bxZC0xiNGe+OcbvX8E4Oa\nnniLFEKnDIj3lRvxjs/dfJGC/bjLVNg6grxVOPEAZ7y7q59tuDlg9MPC40dq\nJOayfniWKj3pkOg8+SFFhV0XQRD0PLlYoUUb/Mqb7NgvbiLcH/9rgr/DSa+h\nWZmktsGeHsl4uAnwzpRQ3Z1BNrlKqs5zsRL4XT7ZkZdlsH2EKl54VgobEXB0\nGHjhTFR2EEs/HC0cPtV2GxV0+srRYEb9SmzxEsmShpIlgnjN+ehesDf3o2+B\nMPxXefwzR/jGcrQvMNZqAh0HO/Cevp+fMuvedrrFiWdxB9/pHM4S6K9AzA1E\nIkcC1zqjyGKuycAapppVXSis0fmIWeUyTUAaq1rJ0Q0vDzJrGC8qyArlkk0d\nJIkp9qDn0pJQobQ+NSnHCme7Vie9E+oXnuynpoof/mo7DSUNav/DAESgPiRm\nrUfPGFuRVn3+XFC8eCAt49TvZUh2Ngpjg84gk2oLKDgtCHTVrcb907b3ZclH\nGWtDg1S6vZi0WsbsvAq5i7Ygskaiw/JONyuLMPuoB6paZNfofNJ9TxnBo4N8\nBDwj\r\n=H5kj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"f4f14d3d6f7a278a21c334b39644199d2c919202","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.22.2-alpha.0","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.22.2-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.22.2-alpha.0_1617045962258_0.37550995182611424","host":"s3://npm-registry-packages"}},"2.22.2":{"name":"apollo-server-micro","version":"2.22.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.22.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5235adf88db24d9d5b81f5547b5ce1e0f843030a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.22.2.tgz","fileCount":26,"integrity":"sha512-qzyZs4BPXndtuWkPzlsFfXJlyc3LsQ8lRMOgA8LwbqsgstAZsdi02/pd2yuHq5HZwXL7rGzf7WEmysLeltOAvw==","signatures":[{"sig":"MEUCIHHsjmCLgUdYykwwzhAEGrqX28a/Cw3Mc4CmZrKgDXcDAiEAujJATYJdHfXzIaLWBWGRwTb28JoZsQlVbOtsvffA7p0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYixjCRA9TVsSAnZWagAAaf8P/jHbkGgsK5Jiu/KGRE6t\nrnBNUXHAPyVcVteuDV/ZAj6sPodcwbOsI8xykzEFi8fWdgjLVNkq5oVfCZwQ\nhXSsb8IA6flLOevbH3cIAaE73yRytdAoO0fHZX215c5eZxwtKcngaN8668QQ\nLgsi0KzewIGMQKMPK78dfbdG7+rW2VefG0fCG8Yp9ldXCI+TusD0p6rxOW7h\na/YzC15qJ4mWaca2+Ud3bLIeYjBevpXqbeEJROrMk7a2Qg4PpVK2CJUmOn+f\n/jGwOttFIupEHrSHFcBALtUi7xWefDxFGnTujwFQvzjdtwCtiAwPcSjoq1Wo\nrc6HpX4VvtN/zWNO3eHD/mWKl/F8/slWJz58yCX4o4qa/mBr//FNykYRspOa\n9MkARgD+BWJVzhYgL7PoqEghS5Zm325M4Rjuc15t2NQbNt+oAoSh2y+TAZaj\nrQzGcneN2UHVG+irkufAdZmCpwrxSoW7p4t2a8pqhvYjq8O6+7LMGMmTSJ7n\nD2PNmrh2gfW+nSW3MCvAqMzwxwIywxgj7nDOUo61W6Q7hO5Ixd+XJEY+V3RI\nH6O8nl9Xzp68ftfJGEbuVBdzUQpik+xCRw4TdolQpP1dFVdCumn9dw2Imtan\nqg11AsrH16N+8nVI58M9Ho5NDf/NJCFsEv5yC5w6MfZHf+XO6DWTXk2RC/Z4\n9ykx\r\n=wVJY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9562af498407e86923d96902683bb5285b849800","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.0+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.0","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.22.2","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.22.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.22.2_1617046626616_0.7197260840683404","host":"s3://npm-registry-packages"}},"2.23.0-alpha.0":{"name":"apollo-server-micro","version":"2.23.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"63813aeb495d7a406176729f996f23d87ebc1d5d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-Vo5tb0oqSqwg6dRU7O78dVfQ9dGHh0IDOrZi7yVo8UBxmkvY0swSsxeXG/syQGA60KP1vXYHcQzF6Sh00lW+mw==","signatures":[{"sig":"MEYCIQDwE1tBBjF9AyJApExFUXyAxpfq5pRDRAyI9PJunywphQIhAO9Ck2wHs8x1QdBURlQjm9f8KTkEsZtB+OTOzbX0TpsN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb5suCRA9TVsSAnZWagAAUMYP/2ENVmhmZkCP1WTlWVcY\na6L4cwAuTDVBbLyi9Nhl2wXm5+GZXx70HNzGkKduC5r3kTfR6BiPl53chPZT\n4KKbjdj0itZVMP8kRvvbSy206ByK2yPgkRlfFLh9FNNI+FCH8MkoSuwBopt9\np6OOew8GAYJmXieId+xwoK1Pj25MnkigEr5+vTdCNavVlwYwXlKWzeCGLgoc\nNghje65GJto9p7j7SxnokHO5+oXhhMLf+dhjLRlCk6+NFrWoL8IwNozQvQMr\n400mOcpYa4ujRiUJuj3JaeFLoiqFJkWNlS+q+MER5JYNy/HZ6UzA5cDttKoA\nj4MuFGVX+8e7/xrhGfT6N0AnViZZe4nm15aIL9ccOvqswvUThGVg7sdQ1D6t\nBSjv5iuvuJdxdEtQQkQGXjnU0+vD0xe3LWufM0U0JKs9VBgQ1U9Sn4+bXI87\n0qULzUIVQ2vpCgyxt9cYACcK8kU436XuZ+FAIpxdLzLRFxa4zJM17XE5Py0D\nOwI2V1Oss8CtawRDsTyiErXsEP51a9zty6GEMOudud9F8a9N0kMhEbVU8RqA\ngFV4PvImaDtyAoDRqY3Z/zNE3PVdrY8IP9+Ikt9C9+acVWt4vMhsprm2eeBz\n+DVvfUKakAl+1XSen4408u99iYQ6WOT9Eto1mKa9ZDKa3rdkBCqryOuwXEHQ\n2Gdf\r\n=uJ5m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"9d1cbd17e61bb0146a0c0ef2b207eb100bfc70a6","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v10.24.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"10.24.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.0-alpha.0","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.0-alpha.0_1617926958458_0.6899032603730126","host":"s3://npm-registry-packages"}},"2.23.0-alpha.1":{"name":"apollo-server-micro","version":"2.23.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"7ffeb37b3e764ea2a0227968d963208aa20c7acc","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-K75SwDfqb2nFYMP0iIhO9/aDBwhvOCu8ldeOBGvpFgLrr2NsdqzAWwUriKhKNkGtNYqkqqZuVbXagO5WtP+OJg==","signatures":[{"sig":"MEUCIQCH8ukktBQHjS4Q0jtQwmlxFq4QQZN2FmpjYZcPbLvyAQIgNOwAqU6iRRaab8y9KE+aCy1vwNzC4FJX/FVCUO/r8yU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcLPvCRA9TVsSAnZWagAA69UP/js+OLHXd0CriddyrEF2\nV8xhBtTy7BuPhvgbin5n/DQ+fZSYS+SYZYvGz9wYBxmoz7HuaYCJwGqz0KdA\n6L8qI0kkL0s0ylBHNhX04hcrBRb3qjImwYyEQ7QJLKDjpvhfbyd1vEoCqsOF\niCAZkfCMtB61QL3nPVGx9Ig2oAmy34YvMXmEA16ULdbZ7/C8Epjl+wfFyDN1\nlY5c1I2IbkgYBEPdpDKUCTD2qgiG7n5Drgz51sIDuE1EHXu6o5CJAxmMfjzv\n+gAtCK6+qlPVTIV8Ub8Clgo63GrJjSLAtBo97RpbgdRPZZOL/OruH1IG4BrZ\nkzstrE3yxmr5O5rp08DbbHRea0AawjfwF+oStT4kFHZY1X1BZfDjqQ6IfQv+\nOhp33BamxFGFEpxHpTUdRlrhNRdJZyEWtCF/Ipfi6B/HkG/O1JJBaXepHEK8\nQMXpcYE/RYcTw38oVQntiuc1fWtzre0GPcgFSGNBZ7tW/WofRX3RaOsQfKMi\nht87VIBwxZiP9SO2Nw+EMMKhdIqJyzqBRkHSyFiUteA4vRWB5+n7CYjuE27c\nAJCo4j5W5ohM8kR72b7zgq8glKu/AW4p49Rj4QGjWoDrIJ++W797gfloE0Ux\nRIXtV+UGSkibARpx44yW1TBKF24Xt8hyvSmdrvfdn3fvpC2JrO2+krSDxItB\nT5+E\r\n=kuYC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3a369c3b43ab389492ed107331fad4f947d5217a","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.0-alpha.1","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.0-alpha.1_1617998831128_0.9024203233382313","host":"s3://npm-registry-packages"}},"2.23.0":{"name":"apollo-server-micro","version":"2.23.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a2b66a47515a09e256c417c514996e9f47de1aff","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.0.tgz","fileCount":26,"integrity":"sha512-XQKM66cqpmJFIXmRbcNFjTMdZFhqD/TvXtd5Mid/fSUeyRro0FaZopEQ/gcx3QbqJmv4K86wznRx4kvYtuRFqw==","signatures":[{"sig":"MEUCIGUq0/zzyAv4/2Mox1NfJSOG8bjBuss6VxmcPu6tLG4pAiEA3QIeVf/n1dt39Wb/wTdHKeg6w+kM/ACitwqPUJCBYo4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd3lyCRA9TVsSAnZWagAAG5sQAJ1P2NK2+M2aESmhTtQB\niMXtUuiAd5cBl9vgSs6NezDkWkv4PFZy1MAOF5tzi1qnyeU9lSDhAtP/xISy\nm7iiqxjfMBH6/cwSvok1q3PZ/s7gsVfMOz294sLhKBc+QFFrphF+V+0N0z32\nCxumGJf06aRGMovXQ0JmzKjiwPDpm3gkjpnJaH01W6/GyYU53y2RNLxCIL2E\nyIcRLDxi/EoaOVd0jL0cv3zs4LlWLxsyt/yqmXVTdc6wOcmVrbmHb6P+5+5Q\nud7UjXfslW4NvBpIC/bzYwPcV7qzLVYTbj1jekkQYtjNkJnwrhGE6qOloN6v\nfLRLbzDO7tZGE1J2MgSf8au92Hbx13SkrtZvSxtMgNBiOW9W8TXCvJ78nXCH\n5c0336e8PDtwF3x3JUUCOUpa0Nrgozovcni99Rnc9SrCiE5lOgZnqQXSEfEU\nJcU4xBxfDFPo8Nl52Feg1PbBM9tVqyepeBzOxMx25e/XKUiPBC+ZAcqRqIz4\n1oDifRiAFrHYYkLxk/epp/ZrCy7Hp6uRgDx4n/MZe4efZRslvTZJh+M5szoe\nd2W0cJdpmOnMl9JdSmpjhG371EpsjkWdWeqGoQZ2fYsj/MFUks0fJ7n56+6V\nQV+oXXgoknZ6Vcjbcx134NWOkS93h5CAs3PVn5Yq5CcCIRXTDdrWaj9j86HC\n1ri4\r\n=8d/k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8a4cc583b692a30670d1893c01851259dbd70ce1","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.0","apollo-server-types":"^0.7.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.23.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.0_1618442610029_0.4973819643750452","host":"s3://npm-registry-packages"}},"2.23.1-unified.0":{"name":"apollo-server-micro","version":"2.23.1-unified.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.1-unified.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"df044f12fd31cb91cf1ecc03fc31cdbf8d93e1ff","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.1-unified.0.tgz","fileCount":26,"integrity":"sha512-G9QE9JuMynGvLxhaqyUpMAvwwT0die0rkg2vl8Xcg1Yc2KSmTy4UJ4/vJRKoVO7Ijuo1eirvYHbBAGKcpwo6BA==","signatures":[{"sig":"MEQCIEmieSgYDgIsRomKe80KOjSdoezbc3045dshV91rL2ASAiAjdtGVRLA9WcU+QZrmiqcuCJeARLn/7HWzl66Tc9ECYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggfcuCRA9TVsSAnZWagAAttQP/2UKXa8NNtt2ROpdkHNS\nxdRJVRoROYOuVcqMTkHtLpR8dWXUcOF+ss1IUPR43iZKXCg9KhFG1lWRcZTU\n+/XDkie1r4pmMsY9eeAOE4G0PKzuYqJ0jhJXzgnhcFC60lSvOWK6oQzrhouO\nkRcQ/GCzYAYG5v/IWv1D3KjWT3omx1bqr1QtFXckxPVx7sqkwMABVwmT38nZ\n+AR65DvQ+QUuomIEXb/k4ZK2bD2zuMy/878kRW7YKgWvB+rdJZWg6NnxE3+h\nAat4ScbAKjaxEBbdqoPMvw+EM+sYPUJAhEYoE4KjW3YI75VWk7E4w38YqQvk\nBIW4J+PFj26m2IWAnp9K8+kfYc0vyFCDNuRxIt8p/mKSO/E69f3VkQwq+3Cq\no0OK2tj75+gVQVph9HH67QxMvlvRwey6zS0ud5+bgIgTSXI+uUMVIBz+MFbZ\nERG9/ii/w8aZI37/D4J+5vdUSr/1hAUNdar8TuqiaeR/KkSTWTsyWRdcKIyt\nMbbQMdAdfhI9Z1nFpR93L8IvWgzTcxDbxGtTH1gsjvs6fKnZV0SuS9DLEvVe\nSfVFACQVxymrPYZoW4QWjLJeZNgvAvEcHWo4mJJwJCEDXGSeLuo965lC6ew/\nNeNkNEiKulrO4ak6nFogUf0qOoXoz/In2mWMuSwn1kkAbwlLrid95YpQxATU\nE5cR\r\n=Fy8K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"6972e2379e91b08ccc458a230c6a687099dbf108","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.1-unified.0","apollo-server-types":"^0.7.1-unified.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.1-unified.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.1-unified.0_1619130157542_0.7038388810343224","host":"s3://npm-registry-packages"}},"2.23.1-unified.2":{"name":"apollo-server-micro","version":"2.23.1-unified.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.1-unified.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4bb220cae9873b0f09a5dad97b1d573d64e27d47","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.1-unified.2.tgz","fileCount":26,"integrity":"sha512-oDkoKCHS5w6d1QU2mTcMwUsyqzGz5+Obda4tO2Sv5rTJf3/+N3Z1uZzji42q7CpZxmDLx9bw4WYCmNK3ZTJOSg==","signatures":[{"sig":"MEYCIQCle4zLmwcbHprFQic1rfSOYNMYJGO3w9CG/AtDrrwDSQIhAJ4OM4PRq7NyVlgq1x9kQLGLsLAabhdTIFFl6ZkZM49q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgggFMCRA9TVsSAnZWagAA30kP/jnbPVdzp1iChWGEzJS/\nTR+PNh2EN+5Np7TkeE3L0KcVfiHoaaWHlTfBQ0MncO08Ua9KlW2ZvXKn/mu5\nuKd8oW+RvKfzWZ3IDlCyPAyZcOTlCTrZsaSLDnEKOiLthnYYYtvqF92EoD3T\n04yfJ3nMZmFDxWsRIdWySmvnIZViXCRnbyAO59YxyLA7VGK/ujmqnxF1vwow\n7hYTb32SD9h1K6BX8R3uOZknob2HkmbBRkbCzb88v+IqADcYc2Z/llRez9/M\nJlhaC/Nu4G351df4rgdlHh8x7Ltv1Y4DcBwk2QxaMLiurykGwvejdFfqSFl3\nrIvzqBcRHqOkvCiQrwuMluPsiViApeI5QWrS4/HPBcxAbxwNJeefBdsRP9n5\nOU6KZGKI8ZVL3zdJ03rmaLuEpCaZ6U0GvDpwD/SGGcyNCG/MZrvYk8y35PK3\nFcrrbiH5uTKKFVZth9V8OIDV+tan1xzpRSNZALS/a8Cf/+kkrbpSpTZM3lYf\nz2P+XvTAMbe6byImm4cymTxD6vJR58/xTS5R9HmiUA0GC5y0J4kdvpdnUuYp\nnaz8pW6r5GdTeXFKm5DTI34djFy9ZDUftPkqG78VPUGjH9cBB6nWJ7H6mWx4\n2AGTme/u3S2fUDdMLf1Tn7POlBTcB60S9sXec6JoZCplPrnyOtZoKjucNIkO\nmeQX\r\n=eAYv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"20ded004ddea79faea267addf88da76ad91f2dd8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.1-unified.2","apollo-server-types":"^0.7.1-unified.1","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.1-unified.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.1-unified.2_1619132747555_0.645198458537477","host":"s3://npm-registry-packages"}},"2.23.1-unified2.0":{"name":"apollo-server-micro","version":"2.23.1-unified2.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.1-unified2.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"53255049ca06b63f5a0bad1f95de9146d98907c9","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.1-unified2.0.tgz","fileCount":26,"integrity":"sha512-rNVisnPKYC/PaNI0Ko1RGgS/BoUd0u71wOEk/fnr7ENLKnW51lqFX5FuL5n0Q98O6UuQ9F34m8iKrK3Rss+M+A==","signatures":[{"sig":"MEQCIAta8Ay3j7L3e1SLk33J11m3mAwyNoPwElEutJcCQrbIAiB0VQ6+9SJlu43GRx2rOgN4m58ZRdpiolcEWTv9MDNIzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgggNiCRA9TVsSAnZWagAAm8AP/0lk5RxBckhtn9muhd7X\nP4BD8SLZIctGkR3Buw0tY1+jbD7fwEKrMPll0dOPNboLaoYlsFDkKT6YaJ5+\n+pQAz2YG6jzvk0HzU2c9QUgrjttV4VQxwq4lP0D3zhiNaEItKwe/atteETin\nbIRNNTQskfDAXd9JAXpmPQs4y4IKb8nM1rHWeArkzy35ldacpPEmtD0c2Cg8\nbf4OwdA/D5Nc6VWMaLM1PQRUzo1E3wj4rP/WSFuu0INJ/Xx5SyaPT/6FbWtF\nTB+oGNKWeroRlW9PRuN+nKhE2d3ItiMqy1CW57wAQKqP4kZZqh06/4dg/XPU\n4Re3YM5FQmQJzPi2R2u1Y+eZ0Oegsa7/UawoDuGb1P8kMcSsBbOX+VMJk5AX\n6cyBhqOQtWBH5tfVgi52BR94ld20WE2PB3Tk9qQ5954W8dWQHnfWt5PhPHpH\n/x2JXTT+d49/ci2Eeo4QbtE9NX+BiVYYw9eYACDBNF4gnzn7A0zX5b1f00JF\nIs5GFTdtAS+59kLFVcrPi2qH7XeIEqlH+80Q6OYPK0xXjHrrcysnuAlHwPbP\nJBDcT2WpVDvo4pKLEOW7zG350UIlfQkjRJ63FgM4M/nqwR2Zag57VafLEM27\nldFQxYDj7YXWJWtVMT7GT6H2au+vf1DKWOviEMXi8q3/TDPCWIh7tE+fBuWr\nKpi1\r\n=17Ih\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"9d2889bf59a781fc297672fe463ad4b88e0062af","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.1-unified2.0","apollo-server-types":"^0.7.1-unified2.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.1-unified2.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.1-unified2.0_1619133281955_0.7307104070191182","host":"s3://npm-registry-packages"}},"2.23.1-unified2.1":{"name":"apollo-server-micro","version":"2.23.1-unified2.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.1-unified2.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d8e9e4dff2ce865c57fc7352406fb8f2a26b83b0","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.1-unified2.1.tgz","fileCount":26,"integrity":"sha512-oU9m66rvOpz7jyG5AMOU4I85h8IP1vMncA0PBFx3/0w2UuxkO4yUKaQ2sTCUiw5MBgojmdh56i7u7bc3fYkFsA==","signatures":[{"sig":"MEUCIAH8nvRMMaE/nBh8A8HnxC+Ua/SB3uu7s1rScLqTB6VZAiEAh3QXrrO135URUbSVXuC/VqPCLAZGfASRHtFuhobxBSQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggl8hCRA9TVsSAnZWagAAqzIP/Ru/bujV/YTFrgRsK4gV\nINmRXwamcRBgPxvDdtkx4zjVRIojLewgVR01l5JfK4AzX72RVyxCZFIKLwmV\nTjv5w+y8eRG57r6x+XTBPPNxM9ZXbw8e85NTC5TgsROgX0xe4p2M1ibE8X1l\nElcpIokAbhm8a5AAtN0sOJZb7UPnv43zuNOpnS8C1AOETxyUy6osBOWSA9Hn\n8JfCzIDste883F3+MHWaEQ4Vk+MdE+eY0k9bYq9rMHleaAj6/T3HZrtsDCR9\nTBbKCXTd8nhTzZW4oG9W05TO8N4Awi3hvC+hJTgdQ7x1ZLLw0sc0QXKEByOn\nrGYL+FLu5sopW7gFYYialYAcnh4MByBaA7HhhNoZYM4VWGNGiwiEO3wUCgDz\nfFZRwfijgYBPSG3ZJzoG8za9uCY5WRxJSCg4KTiZCN9VlbcaZwVc46K70W2h\n+UxTnXsbRlLN4HT1JhO5cdWCWZIOYE98T96iedAHu8n2aRBpW5ssCxPpHZPT\nz9zeKTnPDbLQTvh/rL1ssci4QGeGrtKVv8RCDB+/xOupxKQXXzRvmLPDTjoE\nR8welRls7/hFYAfXU9z0mFbMri/AMSg2BpqZBxf+6UUAyAFGouIQzCQ/Lfy0\nx+C7kNoXqgXZ1UDNoPKR0p+3bM3kIeLqy0vp4VgQVFios734WxVdFU6qlBLP\n2TdK\r\n=Km7u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"b17019065d5613198ccbd22f8fbc6e5e18863b3c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.1-unified2.1","apollo-server-types":"^0.7.1-unified2.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.1-unified2.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.1-unified2.1_1619156768690_0.4316273312935648","host":"s3://npm-registry-packages"}},"2.23.1-unified2.2":{"name":"apollo-server-micro","version":"2.23.1-unified2.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.1-unified2.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0cb721e67bccefd49e0578ba54682db89ee42960","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.1-unified2.2.tgz","fileCount":26,"integrity":"sha512-mqXafRfGuHNa8sHJZCLwBXv2ME4t7G0NpPTXlnTrVB5RWq9fJRADmT1mQohppxEbvwhV5szs6Ixou4E31Hb6dA==","signatures":[{"sig":"MEUCIQDf+mT68dlqqfcfHgA1ZZ6DhZ0VfgO+7qOWQxGDdlK2owIgDPEzfUTnV1/2o1ItQQaxW0IcVyZ1xMVeZzUr0O6Nz4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiI1kCRA9TVsSAnZWagAAMrMP/i6DEW3k4DqPWhuRi903\nWkK88ZEFsHMWk5mb0OHwJf4I2kapkh5oPLDLinhfo1AOs6xFcJvtUKWeE0LQ\noWx8DlRptpctyBOAN3qvFfP9MOQHtbUQyl0squCgo6uopN7PwSptKv3nNPDL\nt5/QNsNEjhckZDJzO3Q2S30eImQA9Y36ILYzW/efgnGcLx+cSKO0swC1vLKu\nWtQh2+l4TyjYDEhbW7SB6n9qgunnrjt3GUZxODXXwn6GsYETIVADz4pDox2E\nMD+Q82AxF1iA7rYm8f3qAbYVkeyxasHbOGnXDBxOsmi4NHvspc5FXm4OYBEq\nQRyQJOx25B2JZo1BxGtLmuFNKuxUfrH597fY+N+Evocf5+IanPmKzk/TNvMC\nAUynPQ8BZhZ/5CL7trhi5wQBVmAX1B7Nhr68hgQm1kVlkKZ2sA9XPuV6Qzui\nKmVVuWEZJYwuVf/SsNT959SBXaGVIbRaUelfyE5Qt/LBoHJTikVPawZAopfn\nqU4CrdQOUrbbZYvJdVI/fs8jSjDNUCaN+c/973Dzag+h3I9F0UJMlClEC1Ds\nDxZSUkFWiUnXJ94DuZebE42HjHCCOWs0OFnTR56kfFGt/XOdIQMrCsCZSvHE\nPTgScKIMdh2W9IDggg6Ns6pgE19nGUjCJr0xegIZYLqchqehVZK2bS/eOwLb\n1vtU\r\n=795F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"414d1839ae9203ec4d7ea04af4eeb6fe11aea19c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.1-unified2.2","apollo-server-types":"^0.7.1-unified2.1","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.1-unified2.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.1-unified2.2_1619561827959_0.23409950671548807","host":"s3://npm-registry-packages"}},"2.23.1-unified2.3":{"name":"apollo-server-micro","version":"2.23.1-unified2.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.23.1-unified2.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0b0f64d9d9a91189c384f45e03d05118c2a3636f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.23.1-unified2.3.tgz","fileCount":26,"integrity":"sha512-T7ila7hQMnFFUh4m0M8IMFWMpqipQFr0GdSoIVmGQj9sBxwFTifMJlADOu0bE5jmEBlE/VA3sLYrYqohHbVZmg==","signatures":[{"sig":"MEUCIEDXei58YsmTsYsG0CQnRiJF/U1TTBM4hpRZYepB327dAiEA/wq5qqfNvumCjxbHUylztfGxpFyp4XhPHfkaUmwL7To=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiJYWCRA9TVsSAnZWagAAiK0P/06SxnHcIu5ad1YBOpkS\nOzupP2txlXKdQBmBoHmr6Lz62Q+FKtKWvVH4mN7LlH2K3RCG7/6XARcb4Csh\nJ19Y9rmzPfA7/aaP7xlexPRXdGBwlBanxJIUfaVVJ+kiugErC/xfFsuRlMnQ\nPnaHMCKWdmo04uIMLZlGR69Nh+YPrS1HFgCIDPwqS5ohnYASAdAmI1P5LYUC\nuqmWsedhvqPAht4zKgeKjvYoc1+XHas5JNTOu/CevApU7rtCx2ueUDNWVmfH\nK0soqen6mpX1DyNmsSxWCxB0/VpwSve42rzNfYtWjbACNxeRsSldrkRwUkwg\nWkMEMA+HcrzgREr8N+jsqZkDemKEMIXC235ysDk8U6uEP2nl24UwuU3Ujgaz\n46tGflEPBE6M5EH43sZnvISRdmURUED0m+KR0oVTb1JqPnnheOMPp6xz/iOf\nCxRdo/VMwXgn+p5NtWorq1Np2+BNSXsNhgUaRmUA9kN8fXy1cG3jqaiYwKq9\nhfZlr2DhiMZNX/S/XIbx7zuUX85aAgXvrt9P8s3haSHvYAEW8Xd/du9wA1q2\nJbkJ8XMGiwTlvdzKo5zVYHkcIgDqbcjq0nZCTB0FdKGgoxWpLoDGEluGWAsY\nyIxUWGaXUKsvUX9mZrf9yHWGtu9yUm+8LOuO0ANZp9u99W360lz1Bu2ksAb8\noepB\r\n=IiyC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"667744f93502a480e7aa3e8c09e4c2c4d4f59e32","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.23.1-unified2.3","apollo-server-types":"^0.7.1-unified2.1","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.23.1-unified2.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.23.1-unified2.3_1619564053507_0.7915917954692886","host":"s3://npm-registry-packages"}},"2.24.0-alpha.0":{"name":"apollo-server-micro","version":"2.24.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.24.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f8bd7079824d54c773c61fb6844c3c80b389f33b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.24.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-VTjNMPbbY+2NSU7KBefTUb9g68xah4+oPPjPPsaWu9zvKuwZyeMIJytGUuiaGzub+RDf8qR7vImtaRqLvYvMKA==","signatures":[{"sig":"MEUCIDAwX4m99L8blahJ7hwCS1fFkw0sbXd+NH9BBlKb6vy/AiEAokBt5EUq5oLMXhHBxTbc6SmPYj4FTAl9cXDB6eBB/Qg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgic1BCRA9TVsSAnZWagAA3+gP/1MjU/Av1CVmOBkp4ApO\n5sTK6kkK0HspeCtqLLhH2PX14qBqZV0iXgUM8uiBjfbgRTWzjkYo+NFLkaP9\njYNndRlg79Aiv2QT37FCsVCYN5EOWalnADmps6KPb3qnLlHJgPpMLgCrs14U\nmLNg1qKfPs/TwpJIsrCw7ewZQ9jyugBXmhVSq9Mxm58B/j93goDkGaIL7+xf\nx8VNtGeQVV9448mT9jUEDHCwLxH4B6w3npod89EYMSCmsXD3LHMZ/OF5os8B\nXXtAE0xP9FSfsVagxmi1wnAMCgdMqjGNzVHknqosyHf6RqsNOwojrFOFW2aX\nq9H6+8xELmInCrdHKnKKRNCkL6MFF8/BUhe5LFKqCtgEtPv1kucpZ0FCndyY\nPiUn5n2FcBHFK32VfpjM+jYye0zKcgi4/Ba0cq9haF9LO8DFW15mRupsoZ1l\n+Hr2k4V3QlLgkYmw14zWseUuYVEDRjC1NO/3OxaIA9avTMtei1IFytgA0yHu\nRmHGIDqGvu39bTQ5r3F5VYbOl6rkTLlGmDDHkst5R0Y+/b2FSlE4X0aWoa49\nZcuooW481mOYieBLSmoKqNy2nuQuekCWHWOutN1zhasRjeo9HXJ0KbiJbZhg\nZFhxl6j5g58CjREfpWkjRLE10xzYTxLcrvN60cFpB47KWK9DoL3B4OFds8fR\nQ6KC\r\n=NRcn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3415b0708fed87b393d9f34ef9df9340502d2b25","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.24.0-alpha.0","apollo-server-types":"^0.8.0-alpha.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.24.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.24.0-alpha.0_1619643712624_0.7464650170609537","host":"s3://npm-registry-packages"}},"2.24.0-alpha.1":{"name":"apollo-server-micro","version":"2.24.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.24.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"41753e20a8e93c68d4dc7637d33852a39e7ded98","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.24.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-b9q8NeM7uRvPO3M4Db/ZUoM6YYJXSOIUOzab4NLFdeAGgQYqLpVPs2WkKCHMLxRnRkGWf4GnqNuYBaAJTCWevw==","signatures":[{"sig":"MEQCIGTJ4dmYfbmCZlzsTISvyC7wMZc72xstk0JliJ2YbDHTAiB5/DqiqwvrbjV8CNus0UWU9lGtXuS1KO3BojnF/InKAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgizQxCRA9TVsSAnZWagAAJMkP/jYtnGLtGlL8I+Ke2jxL\nQGF6Eqv0UvnKke5R4085nRto01iBxuMx3OjKyJ/Mal3JbMAhqNWTYwhLTSuh\n+Qt+W09l7wUrw7Epc37YPzA6yI/qcZPhzCbA6zooSiFMZnY+DNmoxfD0WOOm\np+vjUMNOPPewxYM54txocA/FyINOQV01s+Prcx1Y73ELgEB9Lq4ZOJgmFYlk\nhG0yQCnc0CQvj+lV9z77M8L8vpUPlR1w5HgBP5ZcMt+ZOE3OcKcnOrTqHu+P\nPeydHG4r5IUgJPZNFo7arjMakEgX4Ng5oPis8edart5dX8NXk1Gq59t1J9CB\nWXZVkMnvlI13Q1nLR2xyo6VDU1s3OpufqvGsCw2+x+ozUC9FGZ2IfFhtmb20\n6Scx+jpJCREmizrjBMU/MFFgRyqij6m6iF0BbiZnF07twLfcPlupMjDj9gH5\nLJyvclXFJEtq9EXLey+zr/Tk8WHfXcJwkuPdhsMVLDBQxUQJ0tawehsL91P2\nyaSTeeaf9QT23lH1vDoHfuhaDAhYc0xIKhLzJiPythudNvNmgSfzBjAq8rJs\n6ZNNixjSXKqsc9/fgXFTMhSO6vJJpOotn08bSlySb0f64ap5iXhmuEKHEzfa\nSSCJKze1lPfESW435Skw1898jR8VWpLk/eLHMhqIM48lgvnurSI3PagJsHA3\nVS/g\r\n=5dFS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"27275564a9ebf9251ed4e990c4ff1900b6cb49e8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.24.0-alpha.1","apollo-server-types":"^0.8.0-alpha.1","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.24.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.24.0-alpha.1_1619735601189_0.8142998350897408","host":"s3://npm-registry-packages"}},"2.24.0-alpha.2":{"name":"apollo-server-micro","version":"2.24.0-alpha.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.24.0-alpha.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6e4eedd7e9a97a8ecb258c76a97d2b5232a6139a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.24.0-alpha.2.tgz","fileCount":26,"integrity":"sha512-J0Yp9a5XxZEZe4Vp4WO4NJJVLnWFzKSt7tEJohLAGrXQk0BMHzsdS8vdBdsZdQLj7taHnrva9fDjL/Hb+lYj7g==","signatures":[{"sig":"MEQCIENydG8KpX2PNWPLZSS0jm3MI1JdY2qjMEyp+T0VljqXAiBktsTOll1+6OHYZbqNDPBVTG/JPvJB4mcXB3jUCZ6F+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjA7kCRA9TVsSAnZWagAA+D8QAIimmWb134G6xewKFDdK\nJr8qb24QxkBhmKYy9MHcrXqlN7f67MJYS1BkagOnU053cDe4WQ6dz8JAjgVA\nw4XaqDMU0oa2dGHjICEGRiHpKWOl2nRZGll0b0lWv9UrofGgjws2Sdyvbmk4\n7vh3+fk2kRp7soJ8g1+PVo96gzjbESENl/4dmsoH6T9XvV8XS6jTFCww9IaS\nw+yva9Nh10VfXT1kE2ZJOTX/lHQJLX2Uok//2QGVVQSZR3hSuZ+puuf46Vx1\nUCfK7q/QoKgUHpadiiykVXiAjALUpio5Pf3o8855yGZaLKrB4yDpkrzg9zN3\nuTVxI2iBksTkBvS6MLiRIlqbXdOfAAVgGwp+2AS3oEuZlW8p70hw9X3W39x4\nZ8zN+yqzx/8LBW5diZPWkVe++r9BXTIAnSupVukuBmL/vswQsQj3qp7u3uQv\nEgi+riLf1RyCHOpN8yGZCZhvDPwUlM3l8YjefRWVqiWvhc38odHAaendyoEG\n58CqgRN4PvGuSzN2DZZqx/dewWwlIj4IG6mNlD/wh+k1HOuNg7kH/lHpL7Qd\ng/p7uiP0svbExQl9AgOm9a6WJeoxJ7PtYsd6KvbxkPoWAx1Q3h0y85cweqsm\nylm1Dm71bCprzIUFMJvgaNBrRJY9krx4QrpjnyBXEWvWaWqiJFYDfM0ZrthU\nsthi\r\n=/x5D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"4e5f03e2b071c2a049836dd14f072f161a0ccd12","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.24.0-alpha.2","apollo-server-types":"^0.8.0-alpha.2","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.24.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.24.0-alpha.2_1619791587848_0.5161874676460934","host":"s3://npm-registry-packages"}},"2.24.0":{"name":"apollo-server-micro","version":"2.24.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.24.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b94a226d61fa87c384da90d9868f7618aff7709d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.24.0.tgz","fileCount":26,"integrity":"sha512-mXcp/ql+Sz5icxpNy1R3NHJq3ECVG8knkwTmp6v9hPiCTDXVl+Cbx/1xKT4AaqenqlwdWdyvY0pAJsB56n8qdQ==","signatures":[{"sig":"MEUCIQCKR/x2Bwl58aSVv6otUgrSRkgfjzybGA0pgimPtMGhagIgQ8sa9HdSYzQ7PdXHPdwF2k8n0Xik0WrLXDAaOVmTWDU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjEgACRA9TVsSAnZWagAA4k8P/1DOOLqgVEWzWOme/axE\ne1a75aInX4g6H0ZrrM+8WF1Ve82horbdJEKQ6z5lndMIOx67yQqV58sAfiqO\ngemeR8hWuTWXNxjrecrqeCeI3/p+1kw3D5sgZKazwgP1CGv+xxKQYOPadLAV\nBvq4/RabAczOawfnxHH9gFawOERy/PeKpdyiXXJf7LA4B9OJmONjyKv5Jd3X\nPOYjbHMdzPuZSOUyDiXJSgSYZxUj+zzeLViFbgtBoqsSKgGv9IF/ZP2n/YI0\nwUONNy1xW2rOLdGdouec6+YdFTIIIC48z4xp0nWfAbc4Bn407FliDQPTFx6O\nZQ9NS1qdqHX8+FtFE5CkRK+J0c3QQPDSybWnO4EchyP/a/pVKL/Os8In/N3d\nkAiTqbUnMOONpTRTDEnGe+MkwFbFt/wGVbqqBhD2KmhhwDHZvG+gdLdszYq5\nWW+/5ponizdJubvZbn5wMSe0OkuhHBKStRO0emuTA4igmfBo/rVDNX25XXvT\nlmsVKJxfH+fpDHzphGpssm3ji+e4oTr0qtw29i1U4x2LM6CUU560/IGa0rmR\nGy7grc3RYN+Eyf9DE8MM1OYwt0+xadVXURlqeIQeqhri5iYuQe3Tt0QJVwO6\ng8MwkjQvlB+P6NTnyL7dUnaiRWbsPlq5lmSxgf81/9+fepHkJgcRmI7eUVah\n0ItZ\r\n=SRaO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f2349d0e10633ee79bed152f682e53730175d59b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.24.0","apollo-server-types":"^0.8.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.24.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.24.0_1619806208521_0.6457260742165076","host":"s3://npm-registry-packages"}},"3.0.0-alpha.4":{"name":"apollo-server-micro","version":"3.0.0-alpha.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-alpha.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ab865e38a045efe9c1b0cbad39731b12f920a139","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-alpha.4.tgz","fileCount":27,"integrity":"sha512-Eh3ZXhcgEged4Ldr46oIDgGHHWCBBl3dRmN1GhmU8L8Bwo2WYPMALnSnKdq9DHURjbFXzjBBZoNC+8GgSvm1VA==","signatures":[{"sig":"MEUCIDGd49rcGXYJ8JXiwhi4Xk4MDPFRBq6mAxGonr7OB8YgAiEA1FHpdNTHVR21DSGkw0XbVeG0cQ3V91pQmIH2CJ/pajU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":468774,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglFAnCRA9TVsSAnZWagAAIl8P/3WJ5zbryFNtqnKVchK2\nDkpzvkIKW63rsG5uUXp6G4DP719C1B0wOPAJVY8M2cAnrtyTrYWyPEdusgv0\nfo2+VTZx2G3IbjoZ1hatNwc6UkEtllolqgOPll7MWUGOfv6Our/A+lyIX2Pt\niXNWavpfYCjeXmtE/Hg/oLTyyZv7sJ/1xiiY/vx+j6j/wrVbnJ9iWANJ7KLV\nV532NulAIWokTWFzjs26k9Z3vv2NRoCYOSyJWZAuNffyuAx+HKoFDSsn4vf1\nrwz4ZD64gkhrbEwcbUxabqsYewUTrtYpBZYkz9Jeo5CWu6QRbQiyKLUQTRin\noqnIciZZmlTKJAV7kVaPz6VUu9ePKWJa9a5CP03jGEkzy+RyzY3I4VDGMPbW\n0RDot6+OTGPfB4uDAWbQx0NOw8PtTAHbL//RmudJtrK+Z3tbypKlkPGobwFj\nitQZ9EQEtEte8JZQsWweO5GRJPYldDyyKlOMeOMcO96Gb+8Iqzd2siaZ6CnC\nsaJSIiEo60f4COa/9Xv1xoYzAYJjV2ajIEyDUUl68iRobKXxnKCBlWZHXYzz\nCYcZauxYtKcCv+lrVFDlXK42V248jUSucI6US4B8s8PFJEfcx74YLtqe7ELZ\nQTZXGAxe9FfLDjaJPTeNpd4bQ30B2VLJShGSrH5c6DCMuoe5dbMM6s+RXG7N\ncUD8\r\n=9JH5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"97073f33d30f2d682655eb0e4dce1d7d43721807","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.4","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-alpha.4","apollo-server-types":"^0.300.0-alpha.4","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-alpha.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-alpha.4_1620332583504_0.2913391896897959","host":"s3://npm-registry-packages"}},"3.0.0-lambda.0":{"name":"apollo-server-micro","version":"3.0.0-lambda.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-lambda.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d9e140d510375c689eb1ec267b16e90eab1fbd90","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-lambda.0.tgz","fileCount":27,"integrity":"sha512-bh75fq9MWCo2/2RrKwn8s8WDEEX00/mS+ZCv8UgQOw944bxwAF+LyT3F4OfVV/m+3FLCm7lbzbDVvDT224vSeQ==","signatures":[{"sig":"MEUCIG/sc5BQwiXBFUXaB9Xxy3hzQSM/S0+g+0tsObLrGgdJAiEAwj6ntQeEVCMExYjYInVQXW2eSDYnvLHVEU2lXF3AoLg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":479219,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnYGxCRA9TVsSAnZWagAAJm8QAI+1CPurmDXWbypd5FFI\n2ikPcBUWKJLxpa7po9zjz5Ipb17vR3PXf5ZotuxoOMkojVLKHL+JU0kg677u\nw3DuL0yt2mLqaQuVXFTp/H2eHq8ZMGRDfCX5TUdB6/QLgLUZly/CWZTCCyWp\nP+9bQWEGt5VDGWcvktOowQDrcrIttUdROOCfkhPHBGDQOnp5DHg4vVvLNBNz\nZ92R1nf4XI9f1qLiMHXvu/5dEdU6kgak0JXC+bHsYHidMRUaFV1TIY6R6wFQ\nZBYf2E8gd3PXoPtaIxKuwJ70TJ5utbTmInl8gKTKINuDsuRMmYm/aArhT39v\nmjuHPHnrpX/CaZi3JhmVAi4emf+a6iz364v51mo1seVyLdVRQfoht9Do8z3Z\nRzk+Vltb/0UfSOZaMTZYCEYcauyaNka+AOEH0yZPWYTamegAoY+i3HXUfnRh\nLsw8+4XefEz0QyqJ8m5NN5VwU8AClRtDViEAXZCWP7VggzVFlz3Zdyi01+9B\nWSgsPedHGoxFPYmBPuXDvE/kSqL/vIjqlueulIzLtPcPw2KBoxAwVSFka7KG\n5hKFMYFOsc5AOA46i73swSgAP593QX0NmPaHCfPfOHgi4FC046Q3WBDOfBvA\nrwkvlRTV7TwLaySYokDzrdeRnufao/OYh7CrORcyEDUUoQfCNEFMopV9Ff+S\n8Ov7\r\n=zGCa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"3a3d4984e7a7a31f9338f03d3c219d7da8b87f5a","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.4","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-lambda.0","apollo-server-types":"^0.300.0-lambda.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-lambda.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-lambda.0_1620935089224_0.04663810113398026","host":"s3://npm-registry-packages"}},"2.24.1":{"name":"apollo-server-micro","version":"2.24.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.24.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"dcf7c16fd33d4374c880eff2dd1972a5cfa05d75","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.24.1.tgz","fileCount":26,"integrity":"sha512-+eeLxsaExEWaoMB6zLqkC/K8MIVo60ItrYZ0qN8F53beKE2h+VsLj0Rpb+t5Rkm/xfPS4rR01ULlUFNVyPeVbw==","signatures":[{"sig":"MEUCIAYN3IyuFVju1Ayu8MO8diddiHb8WavrGywF4ukz4a5KAiEAni35bRunG8FAr2fXyjewAphNhy6A1+LAqMP9MdrsiFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpER4CRA9TVsSAnZWagAAucsP/1P+20quAMWbWXSuMvNC\na0gBCnqjJnEDJUxs/CR/HNid8hbIS2MN8nMxzfNGUTWRokxqpGTeGwSOvkkV\nw/oCUfLFIfeOHBFf8mZCUdv+qptOI8KxpY15+udl4qMBvzMDivFBbjUASlCn\n8VuarqzE0GufdS4fcLBDuVpHenEo6QGjR2e11DNNbmS+pnlP/mrliy6QeD2q\nYzyuBNnnRLSJmHcW0iiO4PlW82YzKtSJQUxUPFsxMNq19z/v5WYfp9tlctCJ\nJYUyT9gzT33NvqVFSOq6Dn0/H8NCoozhFSYBdxDYkmRgoeHvnJ8fVlBoRVzy\nnaxv6Xov9J16JwMEb4rqlzR05XN1PhzkpiHjePTF13uYRjx26UTBQ440ZV8n\nognvemG1+GbqnB4RrEHhinJp46Q825HR5/HpgM+D/+5ItzRYV7qbifd3pTA+\n9HMWlVH8YLgUgWm8+Bnf7BiQRPZKuSE6TLHu3Y6KkkB3w0GjylDSnhsEoVnN\n6kHQ18ZPusevfHrYkeZW1zB5b4VQEVxiQx6LhVgUSKcsTixW9KopM+6rxszx\nCVFkEBWgLxim3g1xH4NzZgU2EfMrjA+S3PPgxcAXQttMNr3bMXeiGdADPGQT\nyBYTPYUwfza0oewcJrOulnvZY/fOmX1KkI7f+jSZIqpfdLKmC9JYSzkX5Nsn\nmcT4\r\n=ekvn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9e1bf7df8ce856f62e851a9cf268508eb574e32c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.24.1","apollo-server-types":"^0.8.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.24.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.24.1_1621378168237_0.9006243582748219","host":"s3://npm-registry-packages"}},"3.0.0-html.0":{"name":"apollo-server-micro","version":"3.0.0-html.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-html.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"bae887870dff8a522096456eaca228e7e605ee00","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-html.0.tgz","fileCount":27,"integrity":"sha512-/jTxcOGo36aKXDasVo6BjYCB9LfceXCi3hx/Kqp53CeXWopCIENKsaFdCnd1tVxPb/KuAI4/nxR/7eexgajLuw==","signatures":[{"sig":"MEUCICLeu/hqrsei713C6DP6Qgc3bMNx0pkM9lc/BNuyNJS6AiEA3lq+gozpSg7n6KK/LIIZl1fpwtMj423QcxUYZwFTcsI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":479464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrH6NCRA9TVsSAnZWagAALDMP/jwbWiaQOCUipPrkJAGt\nRGAnfLLF7OYIdVaeOR6jhvyNAxjRF0uPOQuCPfwyGlfzMXj+pDq9OB494NIm\nn3udVV4cush5cBOe03ijteOrofi2blbAmB3H2+pSqhpf7QB3CMQHOV82ubJG\nZg2YT5z317PYkISLKthCY9eIPne8R4pKCEyJP4B1FKbLLIvErBwxO69NQRwt\ntSSR9ZXauBmtlrMogEOZqACqjxGagXmOOPttjrTvgnG6F2TELit/QF0e824r\noawqSZ7LDL3o1zzLm6JGFs/xWMZyfWcJBgOWWeQYe19WgUIg9kHXyN6zddsr\nuN5k8sUunDD/LkZL7MjA7V2MC2TDVzDKyIAZZlTVLjzb5uNPlvTYrPaJdH9Z\nHJml79DuIShqYdEJAkryOoR2aMKaaGb79Yeb6ktppu+frPSB07p+mJSkzxdI\nBO1K/DzM6vg1gA0l4NlG10kgCHaSDEkOnzhubbxq8ANkkhCowyfAsIXjMFa+\nS1euNxn2ruespaAhaqM/XpoYxHwDE3f+NKbzSuLeiKXIgZ57aF6yL8F6z41T\n+VbwujJeuMWC9x4WH/lNWT6cJt0zOiR4qKCeEUtyec3EHlobIJR+S/B1daon\n8hy8jT+Th5pGvsl6J+fAJSjAhUPniDzEXbzXjuFTiq2M1r+crd8F+HuYWU99\nX8h5\r\n=Dkrn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ee3ff095c8818cbfd721639741481703fb4d62a0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.4","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-html.0","apollo-server-types":"^0.300.0-html.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-html.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-html.0_1621917324952_0.03725888245593256","host":"s3://npm-registry-packages"}},"3.0.0-html.2":{"name":"apollo-server-micro","version":"3.0.0-html.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-html.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"af411c7dac97082560d67594dea0ee2a674dd9b7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-html.2.tgz","fileCount":27,"integrity":"sha512-1fv6EGaowUL9KuiTpcemugpGhfc6dHEg0H1q6tAXC4JFTdG6xDSvnDK84nb6ofMiWNDUyD28p6GMi5xjT5SeIA==","signatures":[{"sig":"MEYCIQCjF0/3j60YwxgK1WlXBm9Ax1d1dibUmThDUOp/b3e3pQIhAKuYFFOzPrOogKTPqt1b9gt8vGjE/9sWTzEXiIYw980y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":479461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrIj6CRA9TVsSAnZWagAAK8AP/2mn3O1d/7nqOTcYajt/\nGe8OcPBr8Dvv/LEKbDGcJRcJ8khUluCws4EfjASHsve+lyRtCct2RZ/aka1Q\nZsliXGB3nSe/5XqH8kzxQt3ANMsKwNIw/t00Pz/NfOqoXr+LbB5nReR0qPjX\nkUoAuLKd9vTVKJNEkVpAO6CJ/rBq0Lls01+jGL7fwdBE5tCPOSgu0E4LyNle\nrdWmVRnF2yl6Q+dtmpWBdlj4fsm6me8AlGCLM6aZBwCgJPzGxvHVnIbp9iEk\n3bXzcz/qM+U1I026rmYYHiigmALveCQse5zzJEP8yxPZOUUfckMRZfq4NZ30\nMxktejqnX4ltY8Jy2VwX/riZI1vAk8Wc1tCwZELUqfPzIaDSZq02N3W7XUmR\nkR0DoJx109AH0YYTCMgYfgTDps/IOaihKNOq+BCT0zYALDMTUsih05BTSkvh\naVXm9gFG9wD0HYGB0h4vBdTKoAP9IEI37y75AXpdhjv4P/KTeZ5/W8oABV0t\nCmo1hTXuA8zBRp6Lj9DmlmNMbTDmw3yjvhf9xWKv6z9OwFeY7LeigZUsLqCo\nDYTMqa2PX5E0qjb1wXNYzthadT1RXcsKE+QWmEcEhdtNhcXQbU7omSG2kNER\n4EQomncjRt2TPqiFPbRKyw/CICQcDMhrVLFbP+SXcfh4nH3I2G7SofpvO8vK\nY9v2\r\n=xaZ1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![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-server/tree/main.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[![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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"f4056708a8291e4773e99d41cd8f95686d773964","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.4","@hapi/accept":"^5.0.2","apollo-server-core":"3.0.0-html.2","apollo-server-types":"0.300.0-html.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"3.0.0-html.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-html.2_1621919993934_0.6698096056711933","host":"s3://npm-registry-packages"}},"2.25.0-alpha.0":{"name":"apollo-server-micro","version":"2.25.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"7640bafda3b953891e24e579fcd9d575ff69ed82","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.0-alpha.0.tgz","fileCount":26,"integrity":"sha512-k2q0p7Seu3ieZPBNgLNBd5eI33P5nJbQe9MFSterADwa0wil0cD1QeAAFqei2WOmEiBOl/to/qqNkdykEwOgYQ==","signatures":[{"sig":"MEUCIA81SfQzM6G7gDj3dtsp0NA75gHGLDBLNnLTOAY2uQ75AiEA02+oCB+oTED+jmgpdSL4ggNitOHdp6XWkTSx0+2zRb8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrsxCCRA9TVsSAnZWagAAM6oQAJ5LFQxfLRh5eX0d2DpU\nOGh1YDuTkpapvtGKoEf3T4d/XOpHK3/ad+82pxh/MQIn8ia6JB0RjRRwtfEK\nAIcZMFBCnZdL/W0g/eFLZrE776PSVJfEfbMIjkUD313FSkNzgwwGH/XzQDqS\n/7ubhUx4YYJ7/IyzMrVxBd9xcuJyHeVqs9YJsH7t76H+gJpzPkC1qZVcFSTt\nyPrMh9FFBZ1556p1bNS400ICa69FC9BlMArZrk67Nogodtj4tityRuSzbOV6\nDZG0hagCLyO4gSjdnpwcuZG1efHJuKt80q7gqCWBALpej4Pjjf3hsSZL8Wxz\nuBVJcHxjTIPM7EA/l2a6GfuG1TO3PRxo6d+5DvjjXx3eDpWuhwLYjoUyeCP0\nLN0+rlfObXekmpMnPDjR79lNI1vovqzd6NYQkGWRNBgeq3UAgKxQ/0Wt27Xm\navUDzXv2ZQy/1xeScNOSJFrktV6/vaYYECdT1Lvp32/eprvDR5t48WK4kfu1\nvKrly1LBef+DtNHQgSuxdN3kHSD0fN030OnVv81EzntAv3Fr+fFAtiOSBMbO\ngGOlW1dOlkgvREsWs7X/VwVulPOqjxeXwlaQbznQfh4h0f0Q78UU7zRhio3C\n3tkWAcef1WjV2av+rF70pH2eCbrLAE8yco1yCrElF91meE287bHcom1U5w9p\n3C0H\r\n=hWOT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"c8c07483f914a18c07cce6435dcc8816fa795c34","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.0-alpha.0","apollo-server-types":"^0.9.0-alpha.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.25.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.0-alpha.0_1622068290506_0.8401836864543826","host":"s3://npm-registry-packages"}},"2.25.0-alpha.1":{"name":"apollo-server-micro","version":"2.25.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b8618e7cf780041f4a321fc2b18bda1b0e8c3d8b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.0-alpha.1.tgz","fileCount":26,"integrity":"sha512-4fCOwarMxhaUj4dkXcLTl45YLCW5XysHpOyFHWQITfkn6NFhKVZPKSq2PEt9rEhhms8YT/T0D7C76Z4BTj6T2Q==","signatures":[{"sig":"MEQCIF7sXWwVASlTLNjyGg5D1LSuZw6PLXk4ABagA2x2a1ozAiBYh3061R7G/SS8/uAot2Cy/Lqx0GSdqWzo2F5eNS6c5Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr6htCRA9TVsSAnZWagAAawQP/iuVep7CWWBCWy5jVzCY\n9I7xeA5HssmvWstT8sRYXqwP2yucX2UnP2e/S1BoDx7FU8S359SnSkAzc3+0\nfBGowhN/svtpjlK1spclq5mfT3yBlMsZxt/V1bQ9prj8lAh+gIhfmkliCfwn\nILynJwRCZAVOGtH5yxRTH4AfwWSfsV9xAT8GP23cwclYklCSrO9Z+VcC2xby\nVxcRavESzuMeU+ic9bruKQNzuTrGvCn0ubN724mzMOhqJNDO2KyUKaGDR9Xh\nK9lLq7B8rCtAnUkPjcj+Gc/iUa3IL0yzM3B2fTOR433Cd0nZ0j8aT/IQpj41\nXIqCiqjdlaNWbsL9PQR8LXXv5JFYh2CADoJVzJbuaVRL5Nkz1Jt6f8X/fsZt\n67aCACF/Y7wyH8DfmYqI3bRND9YKXg2H9/75OdSg1YwQGYiu1zLK/h6clQzS\n+hwTbEdTJ6Wk5tjx+fqrBWjfJbSU9XMI23TUMJlUqfFXNnCo8ecmJt/cMdAT\n2DCFUQusDJw9GiVexovTpx/KaxFxgF8qiytVMOIrcaY96k1zt6/P2RBrpgHK\nmhDxYduIFdv1ByXrje/7InuLg6FqSwHwhaEErw/DmoOy56Z0tgmXxiRfyYVy\nprTMQPqUTWeCLpjAhspOf/RSX9g6H9lMWWy94/jpjuzDE/ooOrp1guLJfr1H\n13h7\r\n=+NCd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"19572d7b36f01768faf2b2e9b1fbd18638ef7397","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.0-alpha.1","apollo-server-types":"^0.9.0-alpha.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.25.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.0-alpha.1_1622124652986_0.9239501442272033","host":"s3://npm-registry-packages"}},"2.25.0":{"name":"apollo-server-micro","version":"2.25.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b79835cf770ad7ccb73a8ecb5249b734de28f80d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.0.tgz","fileCount":26,"integrity":"sha512-azbFCuwhMk1hiA/1eW4DcQ983i0v/XlOfHEkfNgpFkWGprZss/MEQ1W6Y+5UgeAmpNEUglFEkn7SQqYE26ezCg==","signatures":[{"sig":"MEUCIQDZwdTZT9tNEj5/DH+t010Zxf2Dp+rIWT5w46G4M8tgbgIgVJnY/RubPXd7PhyZj1kF0RYhag/LgNm1mquT6HnofiQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr69eCRA9TVsSAnZWagAA5QEP/2WaNOgGN725DOntaC1u\nVMe9bKfiBOhfI+SAXAi5jpqK9wXkVZtwbvAhHhRT5VmPHQbJqYNcojD7gw/j\nlxjAnefzFyhghRKnwS1hZRwQXTl68x/fLWtSqimyIfUB9A6TqZ1isMIwmR2c\nJqxuRYLFkPHLA8DZYHm0qb9oxM6h0wSy5a1Q4ODM/ED6IgBGTeKk5IHstpAY\nNTcXpYr6RPaHNC0ety4CNxUUgQZ05/1OL/bAuwKIPyWLoZKOD75YaemOWaKG\np8NJxhsVDnfLgUSh+sPVbv6O7p/ySPuu5zmE26S/QJWe9gSPl3IypFpA9ao6\neP33UJ44m4dkgzVy919mN8EdNtS2AAWqzUZDhSmvWROJXFlNg0XwCVeW7C7P\n04yiC5//agXi3YJizXPwpo27Jicmfr1pOnYamewJjF8IMSdfXyFPvHtRiSnn\nZdhctynG4mlNuqDHYRwiO9S1SXsUfzVyU2TwR4nGlX/2CflfDm5XorBRSmek\nmic1BGZvkHXikyPjIm9e8/HF6RHKn593OFmpW33fmZ1bbmvHwM5mrTy9wSSb\n2EuzRdJn80oHe24h0i+wAAgY8ZKm0S3wHaJoaXySfQnZm59nVam3jfwvOUrO\na3MRx70mPljye4RmW2q9FtmwLcqhR7ltQCg5jeHj39LvN1k9kAEg/gQx1v56\nMVg6\r\n=hoWv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"42983b06a381aee6333fd11d5af7bd7fa0d549ec","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.0","apollo-server-types":"^0.9.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.25.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.0_1622126430204_0.865774202301282","host":"s3://npm-registry-packages"}},"3.0.0-preview.0":{"name":"apollo-server-micro","version":"3.0.0-preview.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-preview.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"3236d35bbdb218fe17b6508de4a9b07b79c5115a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-preview.0.tgz","fileCount":27,"integrity":"sha512-4k/n3D4CEongK/IhY2VflklWpj+n56TwD3xWn9noUyQgTdN0uY7elK/vmKLIHB6sEC8/bhtAez6EsjIeHkiCfQ==","signatures":[{"sig":"MEQCIG+/C+O5lk4vKhDtE43Fk3pkq4jV3M7+bflyndBxg9VNAiBAUJdZgawnUuiYkERWHGBTNFjgcLNUcFdv809OV4NOLw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":465970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtcvrCRA9TVsSAnZWagAAMHcP/jgRhuBm46fp6DdkohOP\nXeyuTcdy+UHkTPF9qBywAz3sDgal7voqOwwWfk05F1TAvQ09BPbCAMwqckvW\nb5tv7Uee0Sydek3YDxUx/c8ebsTddzpXhjW90auaW9EdeDwkchCG63wxUI0E\n1iZiR50suQshzfc0iFbgEMW5p2Tlc6UXz0apb26HWWXyPTLEJIe5Yl/K2SSj\n907dNV68yW6ZnWAadyIcKp83DjZ2DHpbiKtk9dBCRzsnt6rpiMzE6hZA/1tt\nQH+hSymOGjI1kt0FGyfUBA4A+plMq950hUkKrcuxwfBBw8cx/5U3Y2vn4GQQ\nh5IsKOGW4XvOQY2HUGnSKbQXah+oKpQG8m/OitfUFu0RMzZKbteqHuHwhXQp\nhPcL97oNEURBxLtKv/Y2VliX/jJhnIoBUAwzTQadCPmMuTucQRq6lwM/LLlY\nHs4UCA8ck2tYd3mPx24TCyva2b77ts8QePDeU8PcBoY/yZ8aMa8sNdQtcjI9\nsYSOtE2FttE/exFgORLi5F/pz2XJpoTNZgsjkDH6ghSjH9mVQ2xmwaAzizw8\n1HhGuVwYFzRycC0ciHCaUMzl2e9J1CGjizej5rWxpVklgvIUgsuuaosUKR/O\nBh4l/z9yendWwuuR8dW/+0IcwR6gOLAy8kTuYuAgLod/XxdMSz5lvLUpO87l\njifQ\r\n=L65N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"68b776f0a08d7361efecf40e0a9e344b19b3e4b8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.4","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-preview.0","apollo-server-types":"^0.300.0-preview.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-preview.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-preview.0_1622526954908_0.12617308245143377","host":"s3://npm-registry-packages"}},"2.25.1":{"name":"apollo-server-micro","version":"2.25.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ed6292b7f0fe13ffd34659bc636f518676ae2bec","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.1.tgz","fileCount":26,"integrity":"sha512-ITNYKuLyFfLfVyMSYs964CJz9Fd6yMgl9TJiAZdOIhePV6SUIzVzkZ/GK8jXbS4VkEaPjJN3AnquaG9A+Q8cUw==","signatures":[{"sig":"MEUCIAy/0p5Q0mn8QHLSikQHztHZ13UxS4IkAKIv17u1qGkQAiEAnNlvjthtshMLoqIE6NN/NaYHaqdaRlqsakL4mRLQBzM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv9vGCRA9TVsSAnZWagAA25cP/2M8F/SEDCIXMvvbYjWz\nrN0m8vXVbeiq8SHm4S4fQVmViGpp1vH83QSQwGM45lpPmi96Ej3OfgOMjOL6\ndeLtclGTrfzN02kHtyGhKekTXPRfo2yiTR2AHEalTocSz1pyrvxAu16JaLT5\nsUfRVJ5R3G1w6L/ZjsYstNKbjd9EQEzyZYkV8aNCXqFLLfeo0Z//4u433oJj\nLc/FJsnUw321xk+abSh5IjV4MQo4sYlKnhjG0w87oniW1SyqQx4rAJHRTutX\nK/VX0WSxGDjT9HJ+qoH10wQFg/J+rw260SxGwzkdbF1+dDXq5R7gGNogvJvf\nvbObFuyWmiaSzvJjJmIsQj4tP4c8oRiQ4X3kKDWFnNePKBUyN49Z9C7czvwy\nZCWMoJejMZWJQtpPrwicAs+s8bAAijhyTqkPEXTkddsTrelU13dlSbMp8UXM\nKviKIipYhdRWLUUhfq+6yap9I4tyMF2v0PN793qA7skPtgS9BSXuQur21SnT\nvd6eCqPRDxubKdfuk2XMkRL/7nxsJ3iaBP5sOZTAGW71C5bb1TVm/g7h/MA6\ne7co9q1iTDsY6Ei+GJLrU0PvHV71Cy9ID24ALdSIsK6wqmQ2OXFFu+WtR8D+\nd/MN0aHvytNjsJqRlPSs5+Tkg/WzbzW0voVcHktN8WLLa4QrXKgJ3MnmwVRP\n+wNV\r\n=cF1L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f47c11d3f40f87797c5a615af0bd0225fb18fda8","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.1","apollo-server-types":"^0.9.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.25.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.1_1623186374810_0.4565631861191122","host":"s3://npm-registry-packages"}},"3.0.0-preview.1":{"name":"apollo-server-micro","version":"3.0.0-preview.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-preview.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"777629e2faba0382a22b15aec6382a3e1e82c1c5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-preview.1.tgz","fileCount":27,"integrity":"sha512-9UqSU3AcnCAo0893HrrpbOFE/jPfxnUVqEFaGe4kbMqcIYGFoDXnudf2ib398ZAVhh1qzpQeGZBu0KR0yNc1CA==","signatures":[{"sig":"MEUCIQC5eIkYD5PrB1wksRLXU+32jb1FZLGULQYC8s5PyVShXgIgL67jNx9tWmqRhyBHa/XnbgMpbxQXELEZwlHq/uuUsFw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyZMxCRA9TVsSAnZWagAAzs0P+wTDxKSyx+25VrfbaW3j\nArR3BAcr7ywBQd6b+QA1jhc+pP6doN//y3UX1F5ySV3OOgCwtlFUoQL2y/fo\nAQ/SbPj4gJs6jC1MEvk7OVeRYAOLMxVgGbxfVrELmk3A+mUs1lBmSE6AjLup\n4IytztvVUNPyUALVzFOI0uWWiEMWXxLDS9uxWfQA2BQ49Wt8LkK3Z5S7rvPL\nY1HyljBBxCH8ZSMtFUMiM4rtFAB/G6X3zlPAfita7bocrkRY934sEmW2l3ME\n02DpbQ0zNvRqjZt1IrJN9sFH162iMJx7U4H6QVbjBjd/bvE/qaboIw0yCjCR\nBbxUvl3lXBP6S3AZZpuPSOMZx/yFP2gs+asfPydFCAy8io5mDpKcZTd/xH7Y\nexfh7G5EPaq+qcns9Q3owvEDHHvuZxzAzj3IB1MNYfrrWZw1RrGdpUinI4JY\nNSOhLiYtQk63bJFNXeYRHxucm5Kqua45FbgOq9d4m3fQFcV58ci3wVOYNeKZ\nmSa/d/yMaVwEAsNnsKwCcL/bI97aLg8IoWCv7Q8pz9wvPHtnmSM7Nje4WECZ\n3L0HgPnyITx1Hxd3gGdnl9t3WBR+MGpEbVB2V02WlkVUYTDdZHwGiI+dc/dU\n9RxhWx7wVAm5zxkxDi6wMkj1CLL/FOzZ7JsS/2c3E6e/9yNRrSvxEB4lkHrN\nsSYX\r\n=e2Mm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"f23a4eb1aa5c5ae8cf83a1f41bd9bae3a03d3360","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-preview.1","apollo-server-types":"^3.0.0-preview.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-preview.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-preview.1_1623823153319_0.6910931171075609","host":"s3://npm-registry-packages"}},"3.0.0-preview.2":{"name":"apollo-server-micro","version":"3.0.0-preview.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-preview.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"626be36f997ebfd4fa7d18b57ba716fdb35cf87f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-preview.2.tgz","fileCount":27,"integrity":"sha512-++wqy8ZCrfpRqXrLwz9dbT0crileQH/gztiwnk+pZEL5NllS5rNeZyibL8uH+4Y4E0pFPSFGzByWKqtLsE9TZQ==","signatures":[{"sig":"MEQCID6uLFwj0BozW1naelXKiIHr6qBNqF3LOc89Xe+Oz5UwAiAqfpJCxUG+EBQlwgtZs7bYT4hBa9iu6AacrBw3JnLOOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyZcKCRA9TVsSAnZWagAAZHcQAIEMigvDy/yhHYZBovXV\nGZ+wu0HLcB4A5RqhBKKVJGmm6Y33ocaZGEz40SrwSNBr/M5KQf00TK6rD4BW\nPwikHan56PVEruMD+0/kULEj5uGOGSIYN9zcwMeVDsLOr3CdCgJd15cXIq13\nAJ0vOVBmOJPckeArRgxr08PccMYR0zDKorJbS8MQ+885A/RcXxIIrpRfShzZ\nNkdU5JKSFouEJ5lkxvgL6KYPCLdEoS+Pflj0Kv+7lP1YpKSrc62uTYIf9Rfb\nhNniBumBJOGC6axcZl5NjhIHp/2Pw/W4znTEh+Cu1ggYkAWNxvlqc2b8MuGA\n9c1u06kOtszXCMSzGK2yVHjpQVaBAV74xUiywjSWNs960z9QoaaaC+xtjzlN\n0EPGZqQe6Hz+U4ucGSDH9JMRMjFXYDEETuL2FE4Y4IQ+BjhsACP0LLF0AFWb\nXWK9iHkmVR1LnI28ggiNZ3TjsVhmOL7XeoYGKqyTidR6zj0/Nbmfo7FxNf74\nyZeBeZyXjJu0Ff9l/ZNEPP5BOU7Ojj2L+gl5kNBapRnzUn1yjfRe1NCKqKqp\nFhoFSefGfI1Ic6iweBvPEmVZYDR2xJEnRl6b16c/LA6TJwTEFKR1qpjr9FNA\nEhPaIDFLAJCgHZDxS9dmTq/t44JfO9SmBxrBsJ5CpGf47mAcQYAmH5uNn6OU\n8XkT\r\n=bmgj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"09dbe3e7029ea3ccdf16538699848f08bbed3904","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-preview.2","apollo-server-types":"^3.0.0-preview.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-preview.2"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-preview.2_1623824138110_0.9445465182294248","host":"s3://npm-registry-packages"}},"2.25.2":{"name":"apollo-server-micro","version":"2.25.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4882a886417ba260abb28aa18a44e9f0490df9e7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.2.tgz","fileCount":26,"integrity":"sha512-TaYHe82Nki4dOxpIEbWi1cNkTvm2JBQX7biluXOTjSyKXrT8/URec4rJrbwOyF56KQ7Td96gkUDJZHBYZ49Vzg==","signatures":[{"sig":"MEQCICHlJlUE4U7oIOxolQ9vv20N/reQ9ndkLgQyTkPMkic2AiBoOWif9amnQUsODOBtERacJWEtahyT/OQTGuBmpLaavA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0j/ZCRA9TVsSAnZWagAAxqAQAI7G8xKwheeNvDhvqPDQ\nvlK0Vfi6k7obKKbyUJEZGGcPyFH4nYmmUMmyLywpFiaqDCmfGeDgeD5EBb0A\nfZEodJjM0sgOz2hMem1lunMgaYv2pkpqlule7HWKuhnhtFYy80orq/vCuBD4\nFvTzcWlOA/mdWr2q0zrrOZ6dzaS6YYyQCGZxinTjT4VIJ3dSQ6tN8dN6QJmg\nyT4TWzhJ43hrypnPax8il6WO2GFkCHrD6DBiq0mEffzgnTFoP4WkL/XfpN9X\nNR0HvalFvqw8TUKiVJKs/wPC2bftA43ngDr9zKnqKKb+bQizK7m3QFwLFgWT\nJhF5hJEA2fL1tAq7hrqFvnOQyB/Lj/tyi1kqGSQISvtOJpZJYW+aJwqo2n6n\nx8HVYsGn/GqBtE7Bo3/4/PF0EvsDKImUUmF94LkM6wN4HZJSlGQc+yurwcG6\n9ieuqXHZwJ8GyXkcGCe0lwDy3clUqUXGOcez8pqHfwKjhcV8VyG8/w5rBhs5\nr6KzszdYYExMVw0kRv+sYiZexB8NCcVcLVTR10jvKOzAsXhVJMco2IEzwW7K\nE1eheQ2KiL41qjzghIEjwVEBvnAwmZ6/zjn5iICFShC6KjjsaHsiJzKbMkt6\n6n8ZnGYGRJQ8T1uMacm+C2iZXfYAusIir32sfH4UV7W3gJLfIEFgXJ43A8AK\n7GTg\r\n=0/3w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"70a431212bd2d07d68c962cb5ded63ecc6a21963","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.2","apollo-server-types":"^0.9.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.25.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.2_1624391640456_0.4071425757578848","host":"s3://npm-registry-packages"}},"3.0.0-preview.3":{"name":"apollo-server-micro","version":"3.0.0-preview.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-preview.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f9b7771b1dc295bfe9a759079d8711b0be41f1f9","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-preview.3.tgz","fileCount":27,"integrity":"sha512-3g5x8trcuCjweE30Kl5oTTeSinm/3PSeZcPtZ0aVv4mvFXTv+BNAgusD0TpEbmAmGo9EcgDuQ/7GTtWf27DeSA==","signatures":[{"sig":"MEQCICefT2Y0rjb71SDZL4oCvcwPUvDp9/LDF8jSIE+zOyoHAiA/3TP9Ms6d1JCsbuKTS0XQuDGVGwdy34fy5Sb/wfvINA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1r54CRA9TVsSAnZWagAA5ewP/2puDYoqQqkofRmykzGU\nVh7rQF2lOjDwUjlowwQbv+feR/vC6/AajmXZXfHP4/Bnk/0lVI960gcDiZhl\n8s2gl65WQ+Il26HE1nkLkPOYxp3/fsCh7tfVizBjSJsO8Dz7Sw9kuKVO19NY\naYO//UvFrurR+1i3HSOVHMGuFHTD77nJgZkx8uWV2w6PGvAoWbJhMFCTysqa\ne+3tAe4FSdF4RLEbwbkExZssG31KAec0Be8czR9Zymb7OKhNMm8dxMNnFf6i\ngt3P+AcVoeB3Ehl6DwiRzvaEyzJzEKoAsx4TJVeIkyAYRDBDRB4gYXEe6GWK\njT89FtzsC+Jr5b76to7xuJvx2/KY0dnK2BNAyqTXh+xBVDxfU8wQL8CfR/9T\ns5Glms4MXO4RVG1MNKDHkR6w29dnPhdUSA8N48b5M7iAIfvuL5i09By5JV3z\n4smvX+ThUOnsazUIhxmcE+2cpZs4bjzct1WiCT1TGi4QmU1sMoX580zeYhVq\nTptjwKgOhUsB+YeNmNqwvYVy2++EVJZy3F3z/IumyWCvTbLBWIpDOVTiepi3\nGaeGztjI7CJub0vx77GYhF0JjHy5yoPVj1jXEelCR7ebzMPVd4l70S9swjwo\nfnsNIlqdblfv4QWJlKOS9tIDIl9fytFp7oe1YQTO6P6UlcmJp5+/deOsF+2X\n7m56\r\n=2qQY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"16c00c982b11cf91ab8f208f88cf587622fc5dd7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-preview.3","apollo-server-types":"^3.0.0-preview.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-preview.3"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-preview.3_1624686199960_0.4219360065516826","host":"s3://npm-registry-packages"}},"3.0.0-preview.4":{"name":"apollo-server-micro","version":"3.0.0-preview.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-preview.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"837afca63b1af455d09124d3159353e46b6b9eb4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-preview.4.tgz","fileCount":27,"integrity":"sha512-F6wXfMjxZgt/E5M7z+MUlLPMFqX4K7n9WIIzBY6lZQ5VtWFmCwLdHptoPla67WCj7VZxbd0MzftVICe4Qg5yww==","signatures":[{"sig":"MEYCIQClohMFFT1262EvaiA0HJQ6F9cOtVWQR49t+XMXBOlSywIhAK9H0jDoaZQqolDh2IQNqseNiiUQ3/p8D3x+DvorBzM7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3Ny8CRA9TVsSAnZWagAAuywP/juNWNwa+tQjH+6Dz648\nQsdEtN9WiSt+tRHZUKGtkOQPyxqgiViIJ/XS3dGd1s7mnpNX167c0Rd7+jh9\nm/HyzSGsT7KEp6J52AvjdZruUnVv6vDbB6cJQR9+e1pdyDQaerAr5B7dWSQr\nJOZ42RDDyu5Sm3SjREYVCYwqT/6sQXwsNFhtOiErH3BhTW1sVigD1cW/2PuT\nN9S50M/xA9NtUzUqVICH3RfyojIJCwGptAMRRqiLCf1V7Rrait1DkVrJHvYq\n1LJXubLJmKt/9DtihptyRKFdRqM9iLbWvWIh1REMM4AbXGsbXnS5pgrGvKXG\nQJFjqtqbCU41JbkEDaz63ZaIJ21wGTdZb3LximBqoC2TuzflfkGC585K6Toj\nrpIh+RKflyce7AY7D2n/V4a6/wxewADF0IyKtINrJXBMUaN+TxntI7sD2Fe9\nmDldHTVTaYL8W6xhSc3f7oLaYz86DiUIeS0DXEBB9BxKQdTKTSTgj1T1QIT9\nB27nLNku87ib2/Bt7wWVs05SPpY9FmgsSobk0genu7Iw+6pYGcKWhhQE30Au\nnva3Mk6Oh1d/bYs7uKjgmw9tKWDWiJVFcyVo79DE6RH33OTzUeVhng8PfXRc\nMLRGB8OskxIcSxQCKmqG1HTSiP5Z6wfzCPUZ59I6HIqq00mqaW4GsbIB/p3X\nkLCo\r\n=CrsO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"4669d1aafb6fb6571de1d5789ee4375aa25eacf5","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-preview.4","apollo-server-types":"^3.0.0-preview.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-preview.4"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-preview.4_1625087164076_0.7883099307973109","host":"s3://npm-registry-packages"}},"3.0.0-rc.0":{"name":"apollo-server-micro","version":"3.0.0-rc.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-rc.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d530bc87eaa688793c2cb08a99bfb6b265e46488","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-rc.0.tgz","fileCount":27,"integrity":"sha512-8CmNsDwXz7VxSU5FgzPq5pGZNMKUVykNNP08XjdGmIBOLTjl4cDeydl1UK1hoavhZYR3WOFdFZJRi4zNNXH+Ew==","signatures":[{"sig":"MEUCIHpWlvv7YExBRxb/u2Sug4abbpuOdZROEW3P6cDepFghAiEAtNYFd9gW+nZSFBAv7MLDvVirHy8V5MinEteDbiDYcaM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3lLXCRA9TVsSAnZWagAAQIsP/2n/Bsd9/bsNxoVFhFo9\nJ1F8oUO9Tu8QBUvIzOJkNwLMgzCriZnCBY/jMNDR/HSmxc1uC52hNmRiOnVU\nGUFjqDKsjPWDKiQkDkCRO4wiXsvFMnf87spdla7y3Gt7XECXd8TkYOA9GU83\nipL/9r/qnjWLW/3hzCa/NduorUVRUMnin+/3AO8sofNIUfOR7mkxX+7tv7+J\nlQbxliJwqvIlDwNibyY6E6fM4PEyBz7EQz/IY1DAp2hXz7Nwk8pPt/yX3KDm\nHwrq/z8ODTZeDvdDcoQCLlLQiHdywtPJ2lxfgQ5C0x7qr4jdxv2Y9uT4jZMt\n3zbJFosxkRnvAcvMfBomwTQXPhWvMEiAJp8St8K3MKR0W/lqVIUkkukwfoaS\nigahlgnvZzAwv0O2/U7c99WVxaeqik9gwRSG1o59bQzZLkisyS6IJ3H6gHkx\nYOLdcTrnONwzaL7KyH9joDgG2dmjs8Nw1YEa2uiVAOki7C1WCLgcJTRx3bVo\nmwnjh8ihmC4ah4s3oIi/aBb5kWZl+uN8uqssKOPrtnjchqnftY8FamYlB2Uf\nMUg7ci99MO6y3ulb1SEodUxGCmuDLTsr6el5KA7+MBR4HbWasddf+snj4HmZ\nzpZAHltq2Cnv+gcL1Y10y8wg/iwjBBLT0E1AX2lgtM33vJ+FG/NjI0qzWIsn\n66rR\r\n=C31R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"b2c2097ddd58623815112c0e084761f426d2e435","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-rc.0","apollo-server-types":"^3.0.0-rc.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-rc.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-rc.0_1625182935349_0.9809812579899371","host":"s3://npm-registry-packages"}},"3.0.0-rc.1":{"name":"apollo-server-micro","version":"3.0.0-rc.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0-rc.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d32b727532b486a5735c5ae8aefa8127fcbc7d38","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0-rc.1.tgz","fileCount":27,"integrity":"sha512-jpcecOhc4fd4M434d9YWlr8SZTsGnbmP2z27Sj3anNhzzJJqEJ7NppmqmfC10Ejq2YYccJv+K9GBoaXdVtAVQg==","signatures":[{"sig":"MEUCICxLWJRCi3/SNhTJSoH+twvqPS7hCWUBMzrrpVPRh5yMAiEA8wOzi7vslWbZMjW6UDn7YFF4TosE0SK0E2E1KWXRVkA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg34m2CRA9TVsSAnZWagAARbAP/2DufkXShVAyklMtY/s/\nm1SV+h1tz0s1N4t2F4AjUn6HXlaDOwLnyiBjQf3E2iyZ9fcmG8sy1MtJShUQ\nLCcwzrTcO1Fby9Ys3PjntVFNDXAU4FYA5LYpIXpyIPiTZftY69XDXPwr/xwB\nKqOCqs8t+ku5TFTrc7G6oS8deH3EQPeRsElPta80Ns/OcflPYOg48PjArADE\n0gkUhPF9WgD7AH0d8TFY+I+wnXTZWAG7HeIZ22nnsmFDKLT6CDNs6DvN7DOY\nhx04Z21t17eie6f6XlFApsPrRq3DLarwDHkj9ZLsSbWSDM44JVGXQfKAk3vA\ntYm6gucuh8FO5PJqGjjibjY6dLS8JJusnDCzgA8YlZ6WdS7nh1qYVrFsC/pD\nUEnJk/5OSsTalRHfHZre5Mq8kBY7TLj0NVONPZovGVuWehhDJGp8qjWtGSmu\nw90xVytnm+hoK6SSbVlYa4JQmTrmaVfTnImN0wC4TY1EB/BGEKs4mcM6Chvw\nLvWUKt3GV0QpOIwE6MOsvn1xdrs7tFiWJZNof6JLbxsPY/eVhyF3F3hG2b4/\niGlUuam1Agn4H/fR9b9IefIbv4NnAw4jhtqgQ/BVAAqe4mNGmIlH5COrqlgz\nKz2Uzne/FDQKNVIW6zwTllzumC1uUPYESY4s0iCdfDAqmU40c5jNjcHXwJk0\nJYY4\r\n=jVMj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ad2cdb557da704acbb42bcbb36086e35264074db","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0-rc.1","apollo-server-types":"^3.0.0-rc.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0-rc.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0-rc.1_1625262517604_0.3276338286146825","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"apollo-server-micro","version":"3.0.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"eec29d74130e80bdb4a2658c090a676d8cb0aaab","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.0.tgz","fileCount":27,"integrity":"sha512-nmQTn+cEswCq61UCDwJ1X3+F5DvUJKelfxgmfb25mvjm64FSgyhnTgBfHGOqs87l+Kj8t9V/Hw53ZFxXRzY1pw==","signatures":[{"sig":"MEQCIDnmeoM9+cK2wjdiN2FYX27p9yx9VpTB2lhdWd1ljgz1AiB9tUqMF11qr0/IF3MMiwj4YCGXbTN7Ik0d60GHnjex1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5e/RCRA9TVsSAnZWagAA/iMP/jjm5D3FH2lL2pp+GTiL\nbv90kwsYc33Qex2QDNHP7m5bauT+hUahE6irISl1ZNJ3rpWqlUqyqAwrjnVn\nfemrzHtyxlXzyeach9PUfT48oBvc3DRf5xWa2og3F//ehOKxMuBrFKBubVnX\nJfmS3uFjIn/lBAm0uhImzmWCU7cpo7RZF4Y1bR6rCEd8hyRfp0xSsDuSU5vQ\nPSiePoH030dyw8ekPneWtKFFqdeohS4PMdp2kLvXDT6gwGj5cu11jXzQfe2c\nkt5XTPtiROqsVba0M4wgaH1Bu7DZRxvjioy7u2RCq7YtmlWFIZfEXeC07xqf\nn8Swbd4HCYT88nYAmj/VQHIp6Xyl8+lVZLLZytgD8nP5PHA46x+6t2Q4Z+ji\nByUPdiUAUrpxAITA5ODmyX8VfDDswuD2WHBz3cZPN4WzUhUUjEBs56BOXkHj\nFqSYLLCHnC44Z0H9KF8wOs/3lCmEGZpe3kvxP1WVxCOtDcJCEGEkgQifU2p8\nL5UOx1TIDZVrCNBQFzJxz9sVEXCJ1niXr7RZEprUoKXbUDvay4J7imdWj8Rx\nOcw1JqdwluM4nlO0KzQzE1RfimS4QUiyEBTrK9gp0qUvlh1gyyS5p4URTR2d\nDoFO7XeXlFUS9OJ8IVoaSkaKkxar+FztIeGyRSfW6oaOLwxuOavsNlXFfZIM\nK+jl\r\n=+/dm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro@3.x graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro@3.x graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro@3.x graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro@3.x graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"bcfd36cdd01f9d26d0a225aa62a79c6642cd743f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.1","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.0","apollo-server-types":"^3.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.0.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.0_1625681872811_0.79813509496325","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"apollo-server-micro","version":"3.0.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2808a9d2ade589ef2ea5487123280ae1087d0e07","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.1.tgz","fileCount":27,"integrity":"sha512-pu4TiW4r+wnq9P6CfTb7qCZzqBJiMzzbG9pj2uW7hHD55TX7CXx5jesbkzxZrSR5eiXCFiNR99YLRzpXdj6p+w==","signatures":[{"sig":"MEQCIG1Zx56RS4sLXYBaDf6X1tIkpVP9OC3Dyt2vkWy+6wJHAiAkMGjA0AJwKJTap2pPJo64QPJPZOAP1qFnqPuM2fl78A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8gvxCRA9TVsSAnZWagAAdocP/RUlQUO+WuC8uOGc+kZK\n01zt+gbDI4FDayxjLCAa3QpkrWcLCsDrDkVVcryWjPfB1wDUUjb2k7Q85wpZ\nCjZ1fs5Rup0xHpJy5oZKbHX6TVwwQMknzhvALW/mQUTQNrXYJ/iWOFy6sO4+\ngdCL+ygPilZZNLGd3RQYAy59/DKPnso/GaR1jt0OepPKAvuASkbAKQLESO57\nyFcL567ZJNr4joyqSywlApSGsXgvelO3xF9Je6yT4Uf3i3xMIdUN9N8UAyue\n6V+2GFziSBtSSskk257nAXJGN7HzceANLlamDUjKKheTqydMhBGuXdWdjD4w\no9E7eWWKziZln2wCrQ3TC+TABID0pAaLFtzVPho4WVbbijzG8EwSL3x7Mtyd\nPHuXa+cQQ0/675yj1QGVmdGIkN69OQC9VXZnM69RwP2RlRTUDdQbVk9XwGCS\n+dxYIa6QeAdCjFuMElrzrTWlF9EEpl9ExSMvww+1p7NR6/3KpkVxeI38iBrL\n/KI1X6bC/giCHlmtQLX8ZsUOJxDxPGq6yOdl9JoVkCJxXkeqkSgGPoGAVfmd\nuDkXfflvhafvA5h55ucqWtA8GOnFEbcprLS+5fm7sH8nFCnQW6N/9+y2eXWZ\n3SBMsxlTL6GFg+5l8N958hJeBoaEIdBUTOOLvAwtfBNCd2q/Ivk0G04kT0rp\nuPi9\r\n=Ix1B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"856f7fbc151ebef4d6ca8a9efe801ecca3d4f9c3","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.3","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.1","apollo-server-types":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.0.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.1_1626475505025_0.54801213684524","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"apollo-server-micro","version":"3.0.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.0.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"80d30072249b7890b7fd9d1dce564f1a3b29cff5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.0.2.tgz","fileCount":27,"integrity":"sha512-uuHRV1cMM6oMm8I6Zd1rXFhEaNA3Nb62eY8dcoxD751uF2TyHbjxinVd6wq7jcEKAgwCLRck2y2T2wmNuzrvrQ==","signatures":[{"sig":"MEQCIACELOOHtXg+Lb6B5jntRGWj1Zf4KXYh26bKqqBNPbpXAiAcqpmJKx+S7sUl6Bo2bK4/o0YgUrD0+YJm683IOnEcZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9wemCRA9TVsSAnZWagAATasP/0Rjgk51zd648juxZRcQ\n1IZLrlHPeLMtB+3X+H6oczH5pmiCvGE8PZSbkIx2z6t6uB5bBjrSju8zBiLs\nZXD4AmBDtAAqmBGWHg8GNcnGITsWKp8oUMLZRtI3F/b9d1XeEEZNn4tUkiID\nZaoXxBXDCwl5fpdEuWgjK32gbcCRqju427sn6zDGcfS0ehZVpOf0mdkL//Ug\nnRUetQupcLZHBuwCSXZtNvkttD38bQmYTVcLgaWGaQ9FuVQgAzeZ5dRpVh+y\nPumFKJPf7iF4hW8JMg0Qy5gZSqdaWLnSuVejZq8rDJZ1NQxkJZ+MOyepuCzo\n3CNqqzzCpmrXYMCq/oGoQVyfcC1eH19d+atYJ030sDbCPJpoE66JW3ZuUCNE\nygrZQa8Zp+XHrzihtosmTnTESW4Cou9qdl8+zNK61avi+df6PFbapFrIJm7J\nay8aDLJuyUWusCjaye0UI63lnN7VA1UhUj2Uj+nUQT28wZIkEQLG5nVlwzRg\nH0UelNffxbHDUxuBdiaor/+Xy5mmrZ/wuw0LWqm4kl6ONcRaWhk/yhep3LIC\nIuwhxdjYlNt8PzZbKY1y5EfIBd2MrlrmWSumleI2TqbbaGW14aRpq8CAZMGK\nwVCv5fNpoe1D+Kvqqdk6k1ejpr5AzmQxhFdYl6iFIppKMXNyDNzyJDlGvJuZ\n8Swi\r\n=4Fmc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"69577df0b08d392e99d65644a27d48b9b925dd94","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.3","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.0.2","apollo-server-types":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.0.2"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.0.2_1626802086042_0.20807419850590314","host":"s3://npm-registry-packages"}},"3.1.0-alpha.0":{"name":"apollo-server-micro","version":"3.1.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.1.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"573750b2bd683c77263bd626e5ab4d124efb3f4d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.1.0-alpha.0.tgz","fileCount":27,"integrity":"sha512-VUQ/yDjTusKvivzc6cM+Ohwdea+Yy0rYVjRxabmn3WXjXuO/dPtzdSb2zS084Rtkzv6kEjkEA0QT+UEozUOfoQ==","signatures":[{"sig":"MEQCIHcIS9wdVhNYPipAUcnK8S1WNchd61jL2V1UjgTUXitmAiACMyQ+vr45KOBqm2eEDvINPzkSspZYp8pFCt5zeL8Fuw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+dOzCRA9TVsSAnZWagAABpUP/2aBZwqDe2EuTsV3jcoE\nm4sw/WjrySaposjUatgTG2NJlRihCx+d/eG6ihCqDblCKUPdMEwDK7r2oF8V\njz8vsDdewkLl+Z0lX4scAQtOdkgmRqjLWbuFaLFRSrxY78+KpMF7R8K1voxY\noSvGsAZXaTDaoP5RFwPd9ShzlsIYL1o/GghE/i3BhUwn4aaA7VMFEFU/SWq4\nlxDQxD+/jOyL2Q58Bn12Eqn+LV7O49zUFkHqt73mzN/RsIo6aLepRewRo8bs\n/OLn7PxnuC27WP5itrIf5Wn9Hqh0XtyRtvXEl/BCXuuSzI9F/5th+dM0oJXc\nm8EXsWV74qpy1D2mkvqUjgWkWl0vjdUXDAEuVCjNvp75A7yeFmrMcFVP+Yfx\nmXijOjjBVyglY541ogZsK5D7gPQOKh0bdW1TE+5/ulR7sJaJaXx7SCl6k7Yn\nX//DKZwvJy3pV5ZdYBUzsHkMQ3hBFbMFf7QFW13fvab3zmWWr4ki4NMc4WZA\niZChmYCIuEBu9apcaqHMWK0JU+kEgw5KdNJX5KAcL518ygQK1HCASZUXfjP5\n+7/g/2YkYllezzcomE2wihgllOAxYnzOH61iBtFYK7eDNc26IxRbYAbVsMSM\nNujU//rNuWp7chtSrtVBNe2I1jH0lIExnewVLA/TahlL0pl+UIYMIEdT1Y3s\nYEAc\r\n=4I54\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"4b0722e23503f776dab3e98088a0dc77436fe474","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.3","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.1.0-alpha.0","apollo-server-types":"^3.1.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.1.0-alpha.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.1.0-alpha.0_1626985395246_0.26360821348050534","host":"s3://npm-registry-packages"}},"3.1.0-alpha.1":{"name":"apollo-server-micro","version":"3.1.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.1.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"fa70423fcf098f2c5d1610ab109acd18a0bd0890","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.1.0-alpha.1.tgz","fileCount":27,"integrity":"sha512-SFSk5EZ1RIHkr9yjoPXnWmM0BWf58EzSphPIVyK2h9rnpg9+2AQAW1yWPvDuyh/AboyKcOlarT5/DeUu3kRV8A==","signatures":[{"sig":"MEUCIQCHI9sMsuGFJpkJQ6cJER/LX0Rp1Ohcw0nTS5AZB1ylkAIgPYI7gw2nYGDt3rCg/+rAzZa953eg0WetyMRAHWeSToU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+l5ICRA9TVsSAnZWagAAJ1oP+wfX/VZ0dFkdxe2Q88zu\n3Y+0Iw+cC8yZBO+gddsobD1tNSDW+Hl4LGLz3p+hgcsin2UeuTWPwwltkyBk\n6bJYaS6K3Wbqo6Ab0lPWuFXaXLAk//0ONuIRfCA5D2F63w/Ybk5EYaR+EhtL\nDKXsX0ewhDKtHjXT+yR2MeIRlEEugUtzYPsISYvzUAkGKAIoAHyU9D9HEpMZ\nbJNv4c1br4RdsqjPOwYMCPddwvJuRo5GALLfXcezyUBuQ8ESwOR4k4u3MPGI\nhI1Kn4OYr+Mz2VSxHEUlhfQhi1VKnO4L8nrnTWKGniL4bPofVBH7VH0KDV2i\n6fpSIN63fdOyfCLwduf3Xe7OW7GZMYTCkh3lwC7pdXEqXdcBrnKvfxcf8vc/\nXfxspMycKVEsPKe34hhcdhJtM7pMj3hVIHtun9YZp4i8lGl7Y50FudwO1vD1\n1h7sHxcD3iaLrYGSTfvRJx4UobGFL9l6H0Smi6wsDDHu8Rvx9k7NZ/k4jtKu\npxtBsMXSZRnraBNYELG5SBDOIRFigjGT7H89FDugPpzp9MQF74tDHHPj5kR6\nCHEZH8DYG/b7G53wVVxyQDLeZojPhh8fS8S5PMQxXVJUt78KDN5duuhA5N5p\n3sz3fW4uzDmrEjlLV5ZdLqsmaX93UajsZJ3ubh5ODFMqFriFqeqOUt5puBGZ\n+kqs\r\n=t6T/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"a383a6d546e69027ce6f0e976f8e6dfffde51dce","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.3","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.1.0-alpha.1","apollo-server-types":"^3.1.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.1.0-alpha.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.1.0-alpha.1_1627020872277_0.9751738778769323","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"apollo-server-micro","version":"3.1.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.1.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"aef5f1ad69f3e4a9ebcab8228a68d8eac498335b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.1.0.tgz","fileCount":27,"integrity":"sha512-DqN7sgZjJ27cGakEBLrfGMgolauzulmnYwWmhz4OMvweaj7smLmixj4X8v38chrmJ8t1Hywv7CK0AW+NAesUew==","signatures":[{"sig":"MEUCIQDUs+/pY+CwIH+9K22aeqt0kuKBSg2Bygmp6wP3pDOIMQIgTvujRg2Q3luaf07opE/IPq/UhnxwEOc+g9tpohgxh+A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/wjICRA9TVsSAnZWagAAl+4P+wYeuZPwBMNlrjPVevMV\nRG11QPM886m3Rtf2kHucTK44mzn1e/y/H/2Ky4hTg17844wfh3IXfktlmrLh\nExvyTYgtlyx5jpyIgtomjbQQ/oLzWgqxQXTUQwgNd6s/WK+J4uIJ5VI+KTUf\nKH906EI3+SIE1zutFsl4UNy5G1/4nZOqIsV2yVKb6XRkrjO2VuBWC8aNA1X8\nYGNuVY4xQODvAeeDMfPoaRvyWZt5+6RkBSFDJ6ypLdomcFzeUBU9f/ODbQOq\nJ6XJ5lhlaSt03MRIYU3HdO9nUaAp0GsgKR7+T3DuzdFMiwSFOrfEnYjTQthy\n+59FuVl28NAJtWR72f6fXAZJQ+OotMNvvWh1zIAn3CAhoBKX0TNctNK6Kwj0\nRcm+LH21TwFb6Q7SCyn3ERLHpBtfGS+pUL88CzrAX/rztVjyuFIefuJFYZ7e\nHUrG8v1rl9mIhqmIA8nvF9XJumThAynvM3XPq1GTuM4jxy7nJE0Quy/Cc9ML\nBYcqh2pjfiBe+p1sel4SA8X7f+w8PWNnWTN9l8i3MjGtShjv9nTnI904dyjm\niL0UwywUF5CfiolWdycBFeLyeyFZkxfrOiucXpUYI9+wwq+tUNdsL+u4DNXl\nrcRADHuqgKq31xNKfp+v8XfhFCkNWX3cFpcETZYxoyrnwUJsJN5RIHkmIeGA\n9vev\r\n=PxnW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"d22ffd33da9fa2972e6d055ebc4b346ad329edff","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.3","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.1.0","apollo-server-types":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.1.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.1.0_1627326664015_0.38160409073165535","host":"s3://npm-registry-packages"}},"3.1.1":{"name":"apollo-server-micro","version":"3.1.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.1.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"a6befa5b498236aeb6110979ba27e091776c8bd4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.1.1.tgz","fileCount":27,"integrity":"sha512-k4f/WyAEciMNM1efY9taWJE/YB2hCDtGLkIl2Mcso30vkHnZoYliAIRmvg6ZfM4F9y1bV7UXfywdthcGiwX7EQ==","signatures":[{"sig":"MEYCIQDHH2wJ/t47JWILHPbFl2Ik6vtWWHBqsaLZ50UnfUVa/wIhALw+nrsDkRIAneiWkTOVT+J4/6Yt1vbQeD7UEpW1bnKW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/xJBCRA9TVsSAnZWagAAB5YP/iZpuNaxJqQ//qik7AMS\nn9yYwPoBxeo+ir1ehQ2HQcIRL+NIECzeDAvnPfi7qi7q0FJ/yd2/DTI+KXk4\nu65SQaq6tH/r1Ma8xDCPxS239hLOMq/WFXfx+8k4so44+s8BRAdQEDPhNCBY\n9Zi6d+R4l6zNQg7pm61JbWmiO2+c0/bKQ6nXwV5MGTPADzCPDWy3TUeD5eTq\npylzGBd7o0/LDGWzpE+/T7qbd8k5oVlNlXUosx0+/4XK/47vNJhsWAKhBz96\nQ1yK00c4aRkUzemaawzSDOaADvWJpK+EBVxGsAu8QsBsXmzZKSmzgHOPWHGD\nntNwUPKQzVD6ysCkHZaR/WzQJ4XXGTbOiZmSXHqmyF68poRDYBgKqv+kMrZ6\nlSBE3q7FDK2tQENe4+uVjIcuQKiSpm9rdFEklzPlkfhzULlTbT2gI21YPI/T\nfS3PNNB+TdYE7vne32+ZZCYM6WLP0O6GjYEBC331ul5vvw0Bcvo4rWVY0bRi\n/I/cI+k/petyyORmpvf4WQAOKcwot691YKl8mrjKPX7t3yNW9VOyUceAnTBY\n7Iy9OVr5fzEC88e/Jc1YhmV/gd6TVizysBt4jyTWURxMXr9HtgYMZWbdXzLe\nxRDnN4narV+9+YeFwDD7ONv2FqBvSICD8nJqXQZAFnBfgnE54kKcM+OUNcBL\nCWQa\r\n=XVRW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"eb06724ca43042fcbf6e04e1de1dc2e5acfadf33","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.3","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.1.1","apollo-server-types":"^3.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.1.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.1.1_1627329089518_0.18093176007714606","host":"s3://npm-registry-packages"}},"3.1.2":{"name":"apollo-server-micro","version":"3.1.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.1.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ed80edb9fd5dc0ce20ff61af73cb03de07d612e7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.1.2.tgz","fileCount":27,"integrity":"sha512-9mtaEZfWsVXASXeQPEG5Lf3xBKWUilHbO/SkTYVC0Mi5amNq8In5a6NxkMvSDBMjv2xGuQUob+WHaCcSkuT1gg==","signatures":[{"sig":"MEUCIQDD/e62s8BQxTdRKJkbhz7tiA9eqWsI3ya5twwosKCibAIgaCJg6dXkz+P6nUfnoI2W8ZdK40rCKYfHvJ696au+LE0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCI78CRA9TVsSAnZWagAAakcP/R5CmwGANZenTdpjkW8F\nvqMR4hR6ZnVFe4Je09FG4xAvkLzxaeZNs+vqB6sTJxbzFW/tuSSK40l2TTdQ\nqt2GP+TfqfiNlLXxBaR7oQYd6ZZ4O9Wf14DskNWGVER9hoSVh+lyWe0jYUFY\nnPhgnTarGbMrVA+YoNxuMWgxCV/h9ij3BAd6UlZThR2EieKtN/e8kUw3lZ1a\nWna5ksjDiRFgqwAL34q60W2smaPbkWPOn84i9cIf3FZMoHjOibY/htmrZ9Z2\naZJVQ7nqIKUjIG/aXhhNuooyqXJV4HHUI5fukjxlp3VFK+I9zVHkNTiLSDQ4\nCFhwfc+FEtFtEOZIyrtWKGIsxzLkiSLaNNYizsOXP8sFjhwK9i9E8YYxhs2a\nIM8KOHv/VFj72Tg+6PpL3+ZzkDnp4B//ArWo2MP4ALNXXZ28j1yv/l1q4QIF\nv4bgjmdt18237BiQhOm+7rlpzktPB/65SKTUQkSM/8hw2XqpXyprHpGA5TzJ\nyCI7853ceBRtENUx4Lp56UFIKVHfRd2mBlrYJfQ2U7sG+3tvgHCBz6PRsVe/\nDRSNiCr9Rkmq7099AArXL43KPEkRHo0y+GmSqY9T+wZ3hpv+xJ1kWe/ZW8hs\nGdZitp26uO7XB4f3XVYm3eVsvv2jylKMq1/hypWJBShFj0qLxmHBAZml9MMz\nIXrm\r\n=S8Br\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"65c88f171864ee5bffb95f36aec93120b77bd56b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.4+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.4","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.1.2","apollo-server-types":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.1.2"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.1.2_1627950844690_0.6772352357979783","host":"s3://npm-registry-packages"}},"3.2.0-alpha.0":{"name":"apollo-server-micro","version":"3.2.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.2.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"980a8996959b0f0999563da730cab492ea4fa8e9","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.2.0-alpha.0.tgz","fileCount":27,"integrity":"sha512-rMyBi2RS+rsYE5ahjwEQTCDnwGIA6xmnczHPf0ljhdOPTEEUopmY0eiR8rqt0bLZ4pFixpYfvaO1OBwLO/qjvw==","signatures":[{"sig":"MEUCIEUmsdarb3I/h/TpoIqkvvUMfElEISTnKSSuxqgfcvEMAiEAxl4Sd4vLgbiTrMYRc/YEUNUXM0nDwCl61nRRORYD2NI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIEEKCRA9TVsSAnZWagAAs2UP/jFKgZGx+bagB8Lhli7A\nykesMRHMD+xS4bPCmYoSFBFnptM6wUCkgkTmOBGOjg4mV4U4ufHKxy4TDqYN\nIyhThKGP5VBr3QE2Yhu7vYSy3aC6h+ShvjUSN6PDpfHkgy+kUsSQgH+FyAyg\nUbeYX0u+acyUMGO/X7sJ/OidMCwZqGKUSJdkdJ56YCG45nn5q4Ow3qYGbv/1\nZN7gOZx9G+Y61I5wrYQ8GQgV5FZc1ggT0JqAQgBDvrugB5JmdLmDzNu8PVfw\nVRf+7CIctaej3RAsNymhy2kjhKvH18czPiOUOOaY7yyhPwGCbfatySU3SoPi\npMiA+z+bGSk8v0uWocIpL9ceIra/dBjp2xNOJoozAqYlrDKHoUJIKPhAciaG\ncPDIJ9Jg7i6Dn4TZyhc6tm4HFZ2RaIeJjKfCOIztDxzocRQOI6KN8JcQnFiE\nFTQwBtWihIPfKqf+5LLnxRcfoqAonhflarUzgAP6xaJNybwQ1yPfzzK2CH+X\nBVY9ylWVn81mOlrRnivRm/Hg0WRviKWBWhRe6uA+hrlAv14mbqz3wmHJFzX5\nHjqSBuirQJvA5RR8HGX4o7l8RyAeWmrpk4js5h+P7VjFlelvnoEdWp/p+ZFB\nFL+kjkGF0VwqApNL3y4ObDbco24fXUmq7xuisVPVR5Dugy1NarBQmd/gtnNT\nznnI\r\n=tRFX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"211cd84ce3d2c9be90248e6a69c8c26bf8d1cc17","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.5+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.5","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.2.0-alpha.0","apollo-server-types":"^3.2.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.2.0-alpha.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.2.0-alpha.0_1629503754086_0.9999358637835745","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"apollo-server-micro","version":"3.2.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.2.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"7a0b408a01f6fb22d18b2080fa4833041616a3d7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.2.0.tgz","fileCount":27,"integrity":"sha512-GCxTWFq3F6T6Y/pWNfioH/RRKeWHdRuFXce7N6VgCxSQlJdr4fHtIiJ8lrfeGSqZiW9Z64zOdIPEQYRSAIYF3w==","signatures":[{"sig":"MEYCIQCdFVQy/veC4/nm5FW/UEpJV2uj6DW0BaLDOrkIK3zoywIhAP0WyVzkTqkkz/5QwI8r6J7hWE69fdnv2i3ui7C9RLgM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJDRQCRA9TVsSAnZWagAA4S8P/AgvGwpQ7uGsayYQAr58\noLBs4DN3K7MuinpUkOP8h5VxBG4SgS+uSL7dyethCf2R5h1wHp8qr6c3Hnnd\ndnaxLyvg3kk3Hc5uJVcEwY5+3VeJLjXyi6hBLwUn/JN7Cac0f3zVjohrdiJm\nEbk7bjoOKZMruf++YPix5pjF/S1H9UL9QB3ct8CKp+H9vQY5mFI9JUPsOaVi\nKCkKLxLCaz0REgwN6egaYMTccS6OuLi7oahuY30Aurdt1MOREL11MVNpZ/qb\nXKpRlsEX5i/vRAi9r5uPjW9d4QREBOFkYob+es/hIAv7QwUe4Dn3M+VZ1j8G\n8Krz4rV/425oWyh+STlMwnkO5xdJNn61SWBLXZY68hOYYyHMKQKV0j7thRkR\nKJBAVARL02GYl8ez2kpQrUb8dFdRW4BaAKr58Xbt3Z9DJfYiI17KBZzKJRyP\ngDCTgQ+Ycn+2RiWtkit9I10YSrBgnQiQ7+bL+p95UdfGDOjhfA7I8Qsu2Ikr\nIJlkhuDYrIGuf3cYq/PmlnoxwXqfec2LCLTtxTgm61NWUfbaSWyglOSBVJQr\n/BIPQ+B+106A+f+RqA2FPT7mBnCjwn3uub3rgzeVm1Q5FeVRSzcIo6GLztRN\nt2Io8wGcqwhtQIxTReG53CYAKJnpYrm1xEI/FlBv3a+ICU1HlSpMTxgYL56Y\nTQ2v\r\n=dovW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/) [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)\n\nA full example of how to use `apollo-server-micro` can be found in [the docs](https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-micro).\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"4dc19131aaea2416b5b2ccab295b06272f94c996","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.5+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.5","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.2.0","apollo-server-types":"^3.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.2.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.2.0_1629762640788_0.1536670048863198","host":"s3://npm-registry-packages"}},"3.3.0":{"name":"apollo-server-micro","version":"3.3.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.3.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"02aeed4e130f418d896371bb120c51c399c1e27d","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.3.0.tgz","fileCount":27,"integrity":"sha512-PTyTgre87Yh89fwml9pCdac60vlmByLYaUqdGtZMG8Z6GQ4tGMo7cUYPMK+FbNFr8/27oOxK8CvEAF3ogAYlCw==","signatures":[{"sig":"MEUCIAjpia6HvZOifPFNqz1jJrsHixWlRvMgExESOFIHHFwLAiEAtQO6qHh+o6FGMZdAPoUomd+wEeMBWR/da3scXWRxiNE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJs7kCRA9TVsSAnZWagAACkcP/3lVxTSU2iYUEiRyg0Dn\nWQTeh/2fm0NG+yVRDhTeX6pzXSNRqgonr6nMWs1ZIy4JQMt0wAiAzCDyVcIJ\n5U/k2iHl/eKgpOvzrYyh/yin535aqRGkFxxUetFWnEyL9/Jmvz+aspUwE8qm\nCDQ/50IvKNPetAyjlgd1tCq2QTtmntWYsChjD1pHe/Qh+HRDcK6UPSB8PGjb\nTUJ5p4H+aqI5S3xW0pqEX7mkWzosZdp36o+2u/P2pLQMDV4apkmxLMcRsoYH\nen3OEBTPAUhBkCQ8IwfAf1QmW7PP+Ts2w6CvjOCF5W/IkvPnPBEle18buAzs\nrfuXVpQRvBP6EroEiqouL3Vajhg32XOPhKXkZ03Oh1NEmm8v6Mb3mYJDkhxB\n6y6wcW8CEStrufQzHLGFibeVIEQ7CdyrpO8l67gHuyPpTTO3SoLJXlowyELk\nS2ekA/4hp0XAchHjXV/05mGia8+++29/um1WrzL1IGEMlOaMq+Z3SQ0q1zyy\nYx654bOn4gh/NcmDNaGwEn5OKqWzJ4nNDc0T9yUpYNcC22brw9pI/zmoicK0\nAg5JmxSRmyoch/vOlGauzkVqcO+HMGCYUNRfWfO6+b4j2ZQKwaux62mOtnPt\nd50ZLXc7P2B8CzG53cHkM2XvbxR5Ak6r2c8Xiamq7aAp8+n2ISpc3mvieXjk\nP5cW\r\n=/hF2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8524df3d3fe98b7ad625c48cb393cd4a59ec1476","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.5+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.5","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.3.0","apollo-server-types":"^3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.3.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.3.0_1629933283973_0.8944359653006337","host":"s3://npm-registry-packages"}},"3.4.0-alpha.0":{"name":"apollo-server-micro","version":"3.4.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.4.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d42e50861dadfc47148fb7863cd1761c54164b91","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.4.0-alpha.0.tgz","fileCount":23,"integrity":"sha512-rzX/KNAKyPGyUCuq1BBup9vvtvO6+7xNuIlEx1EgXaw8fPytwyMYUHnaqQixklbTDSqqoKBCv9yjh7e9ZXNBiw==","signatures":[{"sig":"MEUCIAFDxKSlRMM99RWgS1GxbxjqAH/IWgNr4uozr30WsDL/AiEA2JmvwWRLlJZynZ1SJIAhTAT32LwpvWzvWfyMVUHUgt0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30501},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/) [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)\n\nA full example of how to use `apollo-server-micro` can be found in [the docs](https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-micro).\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"119dac4fbe357661cad7163dfa643b02ab479b96","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.6+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.6","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.4.0-alpha.0","apollo-server-types":"^3.3.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.4.0-alpha.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.4.0-alpha.0_1633739901746_0.3534600068585636","host":"s3://npm-registry-packages"}},"3.4.0":{"name":"apollo-server-micro","version":"3.4.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.4.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ebe7200ecdc78d1647db781c7dfa749511bdd17f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.4.0.tgz","fileCount":23,"integrity":"sha512-Q3AiT3sT8LdisTV7GHPSvSZj/m0YmqRL4DwAe8Wf2p1VXe8tlUR+mqSNCsfQjXsBXSTQ8GuGIEpUuAzEaaus/w==","signatures":[{"sig":"MEUCIGStBw7BEAQHHdOBVDI8nrpfN3n/sccoTMRUfhfY887yAiEA3GMwsBIadt54lW9LkNhL2jDC7iaPw508rZmU2lEYzC4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30469},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7861ba22c9e4caf037e7a1cec71191b9b0deb71b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.6+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.6","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.4.0","apollo-server-types":"^3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.4.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.4.0_1633985915385_0.07143967645562843","host":"s3://npm-registry-packages"}},"2.25.3":{"name":"apollo-server-micro","version":"2.25.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c912bd87ef4bb16e6088ba76e55048ca166d724a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.3.tgz","fileCount":26,"integrity":"sha512-nQ2LspMYcK0B+6+dn3NCqIX9FRoAJ1Z2WtPKeBSI78R+GUQ3hpRPnekcTZs0c1rMusjJ4ku+dKKE9sdYdX5H3A==","signatures":[{"sig":"MEQCIB5Jpy14cjCMAMEePN56F/ET/rM0XEyDBYpAIHSlxHZCAiAHe7fQY6vX8B4nYArRtAQy66OeSgjKkh7hq43GG4oj9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42851},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a725306525a99650af46effb72ae9afe780ed88b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.3","apollo-server-types":"^0.9.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^2.25.3"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.3_1636049067511_0.41778563261457613","host":"s3://npm-registry-packages"}},"3.4.1":{"name":"apollo-server-micro","version":"3.4.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.4.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b344e3f15933e547e5bc3bb24c9cb215b5eb30c3","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.4.1.tgz","fileCount":23,"integrity":"sha512-JWKDE5TlAjwTABjD6jrjDVOEwGgOJvpjn1nH8jYquKE4w1tNwclHLPdgKysCWNOEd8CiI8bP6/8OIOK+4MqldQ==","signatures":[{"sig":"MEYCIQDIXM+7i8pjT7khnF2jGKaWX5RLSlFEfreEif/Rp6egTQIhAKbeyPmYIMq+RbhKwzE5ONIAK5bWvhxhpYOCum8661PS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30469},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f3fcbfe09957806df06f8de431877dd39d8b97c0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.4.1","apollo-server-types":"^3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.4.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.4.1_1636049198342_0.9967555234713787","host":"s3://npm-registry-packages"}},"3.5.0":{"name":"apollo-server-micro","version":"3.5.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.5.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"53b93811b573e0354a41ed24eed8509eb3025ec5","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.5.0.tgz","fileCount":23,"integrity":"sha512-MjkFH04BP0vjDBay4oNCUWj/gTTiv/8cWCFVwOLG8aVuIBTaNeKdcWIzO5bE4kiYdnJ8iZyeMRH0impXA/C96w==","signatures":[{"sig":"MEUCIQDEEyUQ5joKn136xZer+49UOdLDZGya++JzCpifkfUSaAIgJagsH5Wv1S4Ta0NKnn8GXmW3O875trMV9fJvI00DHBE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e6c3cbbf820b3ffff1e7e98d41b3bfc08f99b9b0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.5.0","apollo-server-types":"^3.4.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.5.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.5.0_1636134879224_0.6696642308441243","host":"s3://npm-registry-packages"}},"3.6.0-alpha.0":{"name":"apollo-server-micro","version":"3.6.0-alpha.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.0-alpha.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"89bbd07a3be66bd048607266d8ee48d3c88f32e6","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.0-alpha.0.tgz","fileCount":23,"integrity":"sha512-YjM89O3grFBIcOOXvcQMwTlupUC878+ySTxoGM4uC3447jXkmymxEGyv56l/2QZUoaY+1cV2SNPJDpIh8Gp2TQ==","signatures":[{"sig":"MEQCIGTembxxRK/EKq20mEzpmcEZUnEgLUWsy/6lioA9BWm3AiBCnIv5Z3UyzCFS8p9xDJJQ59w5to56dPCTYnzrnp+meQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvQfmCRA9TVsSAnZWagAA+10P/jMZb5CkPgTACQmNUc0r\nhOPXEmW+TutO2iprojrw4O70zeNvBaMfAtqBU9Cf/Ou1KgfjSaSTpePmw943\nrbQXQfaNCuX3E19efrR46HEcDtXajhhxqk46i4D34YiyFbl+PYEdQ6joObjY\nLKSbOMTqdmq6OJ4h49487XMwMjOwP4lLC/qJ0ZiS6KRLlh+IPOZzBstqdF92\nv4SUbOhbJapQhTGQPCYgwpVyJ5+bid/mHsiISDhf9EWzW4G+lWERMJ71ks6a\n7HHYsnTJ06Z6C3pWgeRGIxAk2DngQy4a3RauquAVbxDXTi+U+NQUfKankime\neDutCAY1TWzE7AvYuScMkWvtRL87DpAxiZTkuu/1aFdErXbm9L44k7I0Nghn\niCcJlftVYJA/tduW8c/yCBAI00SqROqfh1g8CuPTtVMMynbF1t7L4XE57j8s\nr84BcYVXheJIbWZkMKslqdmv6A5sMwlocBNH/pVKdb40zPbxUWlNzjU2vgAt\nuM8lqn+dzvWii3mLxu0XiMkVETvuG8ijdnUejWr1VASk7PUjTZCyfsAcZYzh\npHWBCMEK6Bv1UPKkigBCsxbqXHFuANQPLvLyGfgfjbcCjMIyEgUmmpMltS28\nKi3oJuynTWKVibaDNK40Q4NFFzGGOdfMx6kUsUj/ZBP7E1Uj8aaSeaUCCEeb\nEBhq\r\n=zVRG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/) [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)\n\nA full example of how to use `apollo-server-micro` can be found in [the docs](https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-micro).\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"2c352a9e0c5a48b8cfec145bec52cad2f0a73fa4","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.0-alpha.0","apollo-server-types":"^3.5.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.6.0-alpha.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.0-alpha.0_1639778278674_0.1312274711648025","host":"s3://npm-registry-packages"}},"3.6.0-alpha.1":{"name":"apollo-server-micro","version":"3.6.0-alpha.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.0-alpha.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1dde3b4dbc8f7e39d8aa12ded83b412fcd9594dc","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.0-alpha.1.tgz","fileCount":23,"integrity":"sha512-yYHaf2XKcvqfBY7CA9JI4/wSqkf+fPGrUSrh5lJo9I1t5Cvhc3jii2WXGIRjsRyul99PFYiqpysAaYfu3fizGA==","signatures":[{"sig":"MEUCIQC8IB5XJoiAqgaR5vbY/f8oqajbFUPK6Ts1LDTCB08nYQIgF8YUOl96qq0tLcdJc7xtIASdvw+6iYStB21da8fBYNs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyoBQCRA9TVsSAnZWagAAYfYQAJcSePonqROIf/2suttn\nIMCrH7NKeKOz5CVFtwpLzVIeQ5J9I0/Ic97dxJkT78d5jWK0df14LAhJdH0Y\n7+pnEQiitmdzfe52Dpwxn6XPVFsHCUh0gVN8CVSShJ5Ze2b34wL6BnLHB8aT\ngNxHeX43d3JmCFL6XultO7KG1APcjSt6eVlNH1etml2lJTe8P0LLGMdsRW6k\nzhwmIkYLBmQdXxwtGUKK3KNqtTcUYh6HykHtKUU/Jzs8ekt6/eDyZHMtohGE\n1AMicdI5p2jUv8p+W0zirMcXYhfUpa9YLEkb095xhAQpiKBMFkSpoWPmE8Qz\no9Q2qNPlTFB+vr7eVw3PysY1qKDhibnp3OMC3WGIE0vq9lr+0jnC9E5M4rwH\nHHdRc77LsnF0XpG4jk+jsh1Xz3o3iS/S06w6b8HzWafuEUjoYVs/yOwk6uc/\nhw77/X2XAXYpJv+ztcw0ftgDSBZpR25wuH2nPMHgcl2ZcBPGt/U3iUVeXW1J\ndff2Z/EpRJU/ywcvoelWDzbtZPT1rwGh98EFow+x3nqGeZhBwddPrRYKkTV6\nSd+7dOkhRlYWdaux1a8et/fuXgySG2dVOIYsUyUzzLKfE67IZZdU3kFXceoP\niyJyWQYgKA6lHShRHMvFcAcnZHgWjv0iW4mAU0DpFqw3fn4JJjy8TJlv9ieV\ncsVk\r\n=7JmI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/) [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)\n\nA full example of how to use `apollo-server-micro` can be found in [the docs](https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-micro).\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"1361265ba3d573b7e7cac348c81f923ab32fbc6b","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.0-alpha.1","apollo-server-types":"^3.5.0-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^3.6.0-alpha.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.0-alpha.1_1640661072795_0.45998581829282736","host":"s3://npm-registry-packages"}},"3.6.0":{"name":"apollo-server-micro","version":"3.6.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"34bb41cc804065e6f12bcbd7ee1225c73875ca1f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.0.tgz","fileCount":23,"integrity":"sha512-PlMS8f9Wy9feubJWs+7FtZZ1ntnPwcoiHOdeOSNVH/p1W2pnxSYOPJkpau68MeL2cRlT8WeBUlDBVI/BIlaXBg==","signatures":[{"sig":"MEQCIE+Hyr/kuasymdbYwMFI2RFLm1ZSyX6IkwyM1kG4OPTHAiAj/nmV2GnAByGcVdVM6E0uF1RRX7FzNFBIBWurUvYBbA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzfmxCRA9TVsSAnZWagAAIssQAKQu6tqqUOCDcFxixb9j\nKcvPLWTtoKAHaRIINEJdlY1E+jraflFPyUY5HGC7GQLaI2BEb8DqLXOFpkLP\nJX5uc4r9sSfNy+wKmN/zFyDtQhXbhiP+1TJPnxwPKfMQxEcnYSkoPtUwyRIR\nBtMXHAMZHqp2ZFI5sWm1se5kOf692Bak0eBr8pPkPVEdXHlmavcTTIFG4Tcu\nQp0635ZIL7RgJBWxNVH9Bl+04a3p4POFeyPTV1gyuFHDSVTHFG5Urs9OhDPR\nkW9fzM6UBc4Ey1kvQ7BbJwAhisN/UqmOPQXsfObXJA35+uhf5hAOGdPe9NQ8\n3YtZIWkZSaY5QLRhhywFy/vD9w3OPylCZGqNqMwqKfuDbDqVMCIXFq0eMGfT\nxC0F4eWbhaqt8aBKbZJoRrvSNP24Qr8ZX4xW7sD49sMN1Mt+vi6/x44+PlqW\nAf8Zv/njI4QrxpZAFIM1xDFxzdBIfNBlmJIMuC3IYso5D2D6L2t7Fb/0JQ/P\nQxnbwxxBOTteZVN8FtADaYtt/C7ED+V85txgj6N7D3M3ehunftZlJGwnFWRF\nS2PIgkHRb47twny7uD1cUvSnTKsAQy+LjEsLJhrfYfvwG9Pj28Rx2p64dJeU\n62KleJ2JdITwnwMwROZ1yv4YJxaKWkTkixUvz8nwwU/eQicptuNooQGwJyk0\nooAf\r\n=JPLk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8b2c1360c224d23ff64fa49adbee1e62dbdaa917","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.0","apollo-server-types":"^3.5.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.0_1640888753307_0.44001303916673007","host":"s3://npm-registry-packages"}},"3.6.1":{"name":"apollo-server-micro","version":"3.6.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"1d17a7984115e1f9a5957e146d92ea2235b9c6ea","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.1.tgz","fileCount":23,"integrity":"sha512-De19N3j0w09Kv/Nl12b/tLPcC4/SujKmwoZLS0jp1jmie3QaQn6NH3IhGQ0AIzpcbJSptQsi8viYRiZA0+Xu+g==","signatures":[{"sig":"MEQCIC0UoQod0N/epZeuMduDD/dXS/Im83lmx5lxiihdSRKNAiB4/mWVOL1jTNtrIz//r680Lb1ojb4VxzLlaxDLGRLijA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzyh7CRA9TVsSAnZWagAAdsIQAI+gw58dgkCZje0oouz0\nSwLnlDv55OW6nqRzlBXE3nFW9xEw/4pIpqyG+28rpAN9vGhUsrT51al3vzv7\n1F0l5K3qVuTSdviNX80qBsrRV1Lv7gWb/n+LNOFtAnJFK6py+k8pJyMQ8AxI\npFkri4yMbioBX0YIZJQpjiyn/aAxTvyM3iNLoBSgQEaSrOvre3fwMptrcprs\nGYCIJQk3dZnJVkFwuZFOYvy48ifjqjiAw+pXUNjvMSIQFQtY8f6pjcVtu6P/\nUoICnGNKNKV3ptV1GSZpYQ/p2WNYO3ZlaH1CXZRII/G3ELk8DMZ9tl6W2n0I\nICSowFsDnU6RM3E8UZGgoc+grQevtPhO+QDCMeOPzwtIQMA95eLozG2wbKCj\nxY/lVwBgwoaUSqKyuIwATgTbe7xoJUzAZMV6bL7iFyPPKl5h5jow6ZOfKd1C\nQXYZ4t+M4z9ZaxUloJO9qfWRR1lopcZ9ocGdKPacqQ2H/g54A40Rv9aFrwBS\npUMAM0AxdbnTDfj3xKjMbeFcUi9fjW1nnK7DSS8EcAXylrTyW9e/nxh5p02K\nJtFZhniB9jSg6Yl3NgjTERzP3dsMyk8499BIgY3BX5jQorj6dlQM7uBwhQFG\nx2l++SqndKpOB8NZQ65ttYxjIEyR6gKyZ0x6r+bDEhK0JsvT/SfprNDmazw0\nbTOK\r\n=4OqZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f3fc7d147a3bc3446f4f3452acfa5f598099b08f","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.1","apollo-server-types":"^3.5.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.1_1640966267051_0.7189981068974134","host":"s3://npm-registry-packages"}},"3.6.2":{"name":"apollo-server-micro","version":"3.6.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"cbad20c30113d50b8b00455f48f72b4d5182112a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.2.tgz","fileCount":23,"integrity":"sha512-eRb/ei+O+WA7mJZP7VLL6XVf1uMX8O8lnTXsW8G1/henyqUlCJ5WjxmoaJcyF1+jDIyqoSIP0n7gqhiIf/j3Ww==","signatures":[{"sig":"MEUCIDKC2kpvMEX0XAHeDsFNKNw4KVaHOHT7cYNDpmmEN+nQAiEA6l9/uGOSe4tDyesBzZC2VZ8LMkYZZYFaCecJf+/h4RA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5yyzCRA9TVsSAnZWagAAGloQAIIVcWXV4mw8+5W0j5V0\n7A/fIJx2xfCHrxUbdFfdt/D/7nFI1oOZMqyxCBF4XviSTaoTLcjd3H1/EpUJ\nbntUxIaDyoJcAvx7j6ajSOWcOXgj4hpE2zKr31xti51KTwfrKrZlTggrCjYA\nZTW4B0vaPrLabCTFuxrqmBbKWrrAfMW+9JJTzJyPFYfn8S6tLVBGpbJ97msW\n1d/4UnKRgTiyPrFpDQPhxzgn7ZIxO4q3nQwH6IZqAcxVTRRh06OCkJ3xIfGW\ndlp/ng8ZmRq7D9sprdUoJ0ihmGYOTrsWoN8y1vcrRe2YBSGimOwYt9E1jb90\nHDT3LkI+AIg+4HkW84MpRCuQOFJ6g0chKBckvrwyApcwk5aVjMpYmXJvYRcK\niARUtuSpRvg6g4oov4SA+t2ilVfRe6ZEOGWJFfFmCivZF7cUQdAtEme/Z9uB\nqyk4hTO7SSmKIrNkxLrLB7KGN5+ffZg65h/60ZUd5FBbO67eWEBDLv1V+wQV\nInLouqy5PcDZAIUJrg9nVZz6zkk2tcwBvtFWAlWyHwWsN/TLG6YpuypTDdBo\nIMvs5dlsy7kfleH5Go65pkBdXWcCuV08Lw+eZH3fE/42yy34UT3EPG0iUuFw\n+xl1sTgojn+t/UtWMTBBfniX2CI/73m9n0quBT1kZKo8xtTlllJSVaf7qLnV\n5nxm\r\n=X4TV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"022184a4d01d4452ebbcfeeef6e8ee1aae7a5db7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.2","apollo-server-types":"^3.5.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.2"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.2_1642540211591_0.984682937137811","host":"s3://npm-registry-packages"}},"3.6.3":{"name":"apollo-server-micro","version":"3.6.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"302e02e0a71649a08a072b2edf1ddccf76555af2","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.3.tgz","fileCount":23,"integrity":"sha512-gY7c7kwSC/XcO3s4bdHZo/hUCTNCTBakOXjJEb1OQ6KMiMAusH/2qQOtSc+D0LHU3g8DLT035VBouqQm7x7DSA==","signatures":[{"sig":"MEUCIQDIBhZYR+E5g2kTQT2qvMcX/bmrJtv5pw5I7GU4BEFJEwIgbEmnE2/iyXvw60O4P3yNfRJxCTag5dOX89LVFsvzI8Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAsFQCRA9TVsSAnZWagAAAfoP/1+dXZqWj7oYIoOLUrTP\nRqBmAN7SN1Zvk/8mlNQkrzuVQ8orA0X/+w8h71YAnfVIafYxLjBPIpA0K7S5\nyzPf7aZ0eCkG9lZx/pr7DZgN0RC3ov2L4cY9j+2ZBGbsvxufAnfp98zsyLbj\n/q2D5dBrn1Uvj19N2TPqnkREEhzj1IPDULTnAaO1f2MWG81Q521MEzDxMjXV\nXn5h3gIrOeQDWAln20NhxdYg9XLvq2x23cV5ACcvtD3K9lLOAqeZMs9DzigA\ntX/XZ6OGDx54bgGMB0gwh4ldXBhZQjFCRQl8aLj/CebcRv2aDc6xr0STf2Zv\nIAfz5nXk/L5lwYrsyFQp4i/G4Z8DQL+tCkiPPrNe7rybGs9CechNNOjfjcS1\nalvn+2DRc3uQVaSvWaGA1WqPok+HgyvgMpWZuTkM6hCNcKIfRXCDu8eU/OjM\nG5FqznEfshq7q7OZYE34OK5nh+LD/HlNefjHdc1x4nKBoosNxziZb1ZmmuOT\nh7WaZRdEEZchmGAYtJhxVvR1PTTfaj1wx3OL7kA0290MFJteK78HVndV33I2\nI2Rl+1lf7autgSFAATKhTUNM7eOawHbHtBVE7WeezOB25IPxzejDhZyXklXV\nyJO0cp50DAu/37iIf0Mjr7/BFJtmKYK0Hz2cAulkmuQsXMJQ2dqG166jMd6y\nVll8\r\n=6zQr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"289acad0e3777bd0010506763c3fd6e4c0289813","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.3","apollo-server-types":"^3.5.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.3"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.3_1644347728744_0.4773672576500614","host":"s3://npm-registry-packages"}},"3.6.4":{"name":"apollo-server-micro","version":"3.6.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"ee85eecaedb1c0c550b0d0f499b4e3cce3201eab","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.4.tgz","fileCount":23,"integrity":"sha512-wYMOIxtwevM6CxbOMpTDccc3ae/ChJp1XTb0TpBYJDKrEr4P+VFth0tbo4ZwBTjsYGdsxZ2nAyuMpUgMio/xHA==","signatures":[{"sig":"MEYCIQC5T3CX1HdG6gz7LIPwdZT3FbdQB/G09vpKXhNCgLY1IAIhAPvN+lABwD3xS32SUIgrGaYbD/NKuDw/YYtFG/313bqN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKkiWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZgw//VH9ajP2rcJ6bFCOSYHzyvBP7YufUmH9k4ywU17ODhvobnt7b\r\n7n4Mkk4/OPj0uwKM46WOKrIiztQ1ksvSrJy8n0o27TMFS1QQyO9G40kAyCyn\r\njQbBhoSlGPRQMl9WDxBPNfnPU01rS7e5ysXz0rw619XNzts3agpTQ5mbrsjh\r\nhFGgjg2KRds7xcVmlnpVTv9I9PZO1UYHf4E6BBly3ngwUtG0huCQaIqR8Ult\r\nbuRC2QgdMLYsOh35bH8QfTAYBC35rbejgfRY9BaLX+vOGSitkC5EtQgZQxXX\r\nFciMxWKgfovYy+Ia4jiOFxyxbCJFzhfG2snbIhYvKJou5JpwV4g6dMQxFIor\r\npO/2E95hi29xPBiqT7iQJesoeAyt+od533Zjyd/glVK8E/Z90P1LF7GgIupU\r\nJLUG04F+aEAawTH0BiFxjLvuvmVVzh7FuyTjh1RRN3ktNV0uZOSzhoZvlA10\r\nHVvEXaTgfuJDn4ZR42bH4dCsMCej1vvCjub7Q3gOeBvy95a+uBGmlFuTg6Lz\r\n9FshlBnPXmfYDch1uCYKGprMGArhVU2klqLcLEF+Nm52YGQd19uxuJ6kicdD\r\nCk/GS6Zrw+EsLwmJMRsvvmdo9yUb28Vkx1FDWQn3Hk88aaP0DKCMzdyZ07yO\r\nWHLSOZgwTh7vfGv0hHk753xtgfoZcIROwU0=\r\n=n/IG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"dfa9fef87b75513ff32391fb6d8dea4bf5c7d889","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.4","apollo-server-types":"^3.5.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.4"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.4_1646938262408_0.12902696617223008","host":"s3://npm-registry-packages"}},"3.6.5":{"name":"apollo-server-micro","version":"3.6.5","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.5","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"0f1c0fd21cb3f1e8b6814dd25e5d568521a3c0bb","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.5.tgz","fileCount":23,"integrity":"sha512-bj2+Q/zDMRaYj3BUde8JcU6ni8G8nHPGEoh5H0TDeQK5X7aK/g8p/esqCQDyPKZzkPqy6VYPCvqSv+wtea658A==","signatures":[{"sig":"MEUCIBnu5wdp00L0s/uGOtfqjpF5Jy0VNOgCo1Rvl6SoHSrQAiEA5cEXTD843/w/3jJIWPUZ/9I1uh+BIOpGNeQuyj0ZnGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOM6RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWYhAAgHF1zPQOiO6uYEiIuM6ICCYZhPSvuaG72/jWdhwtf33BmKcT\r\nhtJZ5bf0r0aQULznDBMJmVffaEecP9a1itzLVGBs9D1CbexJYeDfZv4U9LvP\r\nu3468VyGbFt8Usfyv6N3DOvFb9Dk0Z1XFjkaCtqRB4/oz90triQaFsYAyCvt\r\nqzRgg1MT8np90zsW8mgpVrKybnO4FVzAqDrD94uosLRyoZK8/nVtUftgVqTm\r\nfra4POskYOuoVbuwdPnMw2uERCKe/zqHVAJxu4O1pLXr13ie54EeED2vmHv/\r\nP9JziMWvk7BfHL8oO+yNnS7m3XSlM0N6wUqWtkmIgX4KxKvu4xapEGK6ab+X\r\nmAuCfR/sSE21j3II8X/nMm3t6hQu9Z530gGdtyBjkdik5cF3xkaHwMggdkwI\r\n8cr1T1Q41l/vNNntiBIfKCLBoUERcMD+yKwnzTfzi4cPRvWnPise1fymqgxX\r\nHnsVVaZimVRA8hSkmDVWaZR3AckOmM7tIpuOMrhnyTubPv84FXJQdEAhgQ7u\r\nEv/H7U1QKcd1JfghvEhfeyCmz0WkPI6wr3kbjwTrIV3J9LKEpb4gh2yK745F\r\nZOfgPd6Il4L/1uaPYtcBh664eKiuANDx+B1l0+yJMzktiP+px2COa9teZMzy\r\nIPdX+f60v8z7cjJYxUX4Ytzypeimb1l/02c=\r\n=bcK5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c3deb0d980dbf983028aa99b7d2b1cc6968de432","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.5","apollo-server-types":"^3.5.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.5"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.5_1647890065531_0.30807393895669","host":"s3://npm-registry-packages"}},"3.6.6":{"name":"apollo-server-micro","version":"3.6.6","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.6","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"99a5e7610c399f713e9bdaacf10c0eed3e2a2b11","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.6.tgz","fileCount":23,"integrity":"sha512-5veE0PGsWbexkh19pmxOfNVKoWrkoI+yqp0f2xACsKqx4khYPQRC02yjGfbBAvpwEP1w/26KLTWImSi+QbZM0w==","signatures":[{"sig":"MEYCIQCiI9JTIGuzSUMnlA3arNI1JSAVeFiZt7j7K+h6e4weFgIhAOYHCgsUK9w8/BKwgpGuSJwJbp31asoAgRZtZX2p6Msb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPNKWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5CA//Xd7F/zXqXvFlxYpEc/xSPzvT/We2Bw4160uNm+jSH16ocTJs\r\nFPpAuWISOCfJrQDbHVyrr+CvIV+a95ZfM9knQ+Qc7eEjcqbx+Vyqz/4G4zfz\r\nzGNWFoRl9RaXefkuYkdmLzYU+8ZKOdUcVBTdSGuQjQ+ci6oOvB0WSZ3tcZlw\r\nlsfZv4uKx/nhexsTIyuDtHvcY+i+T7w7KKMOwpUtpP8Q4e4NFHV0VQJlJpGn\r\n/mKaIi0zB7ECi5L/6EiNFVa1vTAECzsXGFbJuLQs/9U0hLPhEQpf6tDaqdcp\r\nCeSUZhaF4Y441/MTz1lhgodHiLlqBvNHky8Imu2jw6od1dSLKzFcHKuHU4+j\r\nuOr/11rKhGM7k8FmfpsiRqIcjSLwVXxdfWtcfNDK5rnVref3wBf9SSvCLuM/\r\n4yE1UoU4Qv2HsSAwCtIGYFUDFTNH672SGO5lDIBYpx241xt400hr7BP3UmBh\r\n/Ze81QFJH++s7bs+NWvq7nrr3WDFf9KVFHxtrYPVjTth88UbQocuRH/XNY0r\r\nn/Xyj0K121E3Twgihbj+HAwI5DCiFdtl7BHXgO2sL8DPq2jCtmcMtYle0h1T\r\nmtmXv8tONSn+w/dCIBIzIDzyA7u0Wy0JUO45wI8pYl9cGZEWWliarIVdEHGY\r\n/pokfBdKYKFYmBqdBkBb4XjFVOEr18tZY5o=\r\n=IrV0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1ca36691959aa3e34448fe9838010ccbfc025755","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.6","apollo-server-types":"^3.5.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.6"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.6_1648153238176_0.9486334447411549","host":"s3://npm-registry-packages"}},"3.6.7":{"name":"apollo-server-micro","version":"3.6.7","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.7","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"c22779c579a9de48d2891fda460f013fb49f66a6","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.7.tgz","fileCount":23,"integrity":"sha512-qja7iWsuagvVUdw6PsysVucDQR5+DnHNdWbH+u/0OQnZQK3Qlra7CvTHH+8P6T1F5LJ+iaZreLqrMQeihivQmw==","signatures":[{"sig":"MEYCIQC6OdLPeRGvpesL7A0KtYT12CkOAWXaDY2Z5GNb3QcXigIhAK59TjUQgEUfAa/hG1b4F4T1PNlytKvPnKONIScSfrlv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ5wwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdvA/9GAfPRZjIVSMfu2t/rMX5Wzrg/haSELVCFH2gK3ssa28f9Ix7\r\nC1ChaWkl1LhqDQP7j0wjUmQgF7vHhmFkBKm08Dc4ichzEupK/zlhKnKBTjQD\r\ng3z3rD630StPgNsiLO8i+6btKvugxBGoaKixuIqZzoNOjwcTQHkHaNheqK4l\r\nsZBSYBeYj2etSHyr6Ncm7CIab6un1vaaLmlQsIbMXd1C0WujzG2D9FrLoh/z\r\nVJtkbpoyXyQqAQtFa3Ry+tgrUmt2s0GUgRkjijh7ORuTUxmSe6XNVwiF9Tus\r\n5FZrm1snPmSVpeSWgGBa0jHa7J1ysgOVy0X97tiQvDhd5xWKuBd4/XEZD/MO\r\nX+97lNmBrQAKo349DABWlG4k50gBjMrq1YsxAV8eWJ1wzow+9D/biaxGfviA\r\nFcTC1WNAv5tP4BAr74vSZQ3srhKC+eFsW4VfBX0kwmJbzYfkDE/0E1OKwNFq\r\n+diTD6za4z20O3ohF922Vje0x8ulzxbypwWCOqRuGkyuie/F5Z9Pk1aiBTfj\r\nqg9CcGfGHFZxKKHmhNKUfoku8Qp0Ul6dYBwTrICJz9V0Ou6PCUrpy3ZpH8v2\r\n+FK85l4vbKA/MXrQXDQZ1/uwamw5IYlGDkfSn/AQUN04+n6ALTKU2pCMxMFW\r\nHig5Q+v4n4oY17OTJfXuslatwywsjdi2CPc=\r\n=cZLM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7678672824691c1af87a982492b45a473f35d4b1","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.7","apollo-server-types":"^3.5.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.7"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.7_1648598064072_0.6236438065607628","host":"s3://npm-registry-packages"}},"3.6.8":{"name":"apollo-server-micro","version":"3.6.8","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.6.8","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4b5346e00625b4c5d0b98ea0287e058155443725","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.6.8.tgz","fileCount":23,"integrity":"sha512-8QqDBeQmUnypV2cyAYn/jmZwkxXSu+LKj/uZk2hAL+DzY5BAD9DB4FWjMDxBgqUI7EPMmfJR7wBbAoSQa26MCw==","signatures":[{"sig":"MEUCIFc5FH10tkWpxpQejoXgsJct15/eds19xMNkijGhThRjAiEA/o+Cq+YexCf0NHpz2Tg/SA7TjE2pNsxcSt+KfknG6kA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJic/LNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMNg/+JPBJ6xamh0i+blrbfRZWOTWbF8wCDbfJM2BxdEJmI74uv3YH\r\nHUyt9Q9vCPFNuXr+4mgivVg6HC2oKzMrPoSI4u0IQVZe191Cl2tvHpfDPeVt\r\nbeELtsZj9ulkkbIPgO/wtglDCtpwLpt8OK1qM+nXwgT2FJ3zjT8b+d3Dngzw\r\nFLcaeTK30xbxhXtePU3fPNmSB5tnZ6mvFimG55dkkeAncCWPxGg64rrvfgvq\r\nWp805qg1ngsu3Uwb0DkbajkukeSpflsO3MRgHmrB7BL0JLo5vvUiRVZMK6gc\r\nAhk3HcnfZc/YDcKb7gvJ21laM3W4ma5rIGiG9u7G2MHq3Ld6o99bCIjRRU+w\r\nYi91zB5REutWjeYAOP6mtv+ijIYMRZix7d6obafN2lNt90LB7RqgdINMdtOt\r\nyQQUdmtDUrStEkzcEmaSfgqjrgl2Uu2U4cWDxZ9uEbAb5izRGCwxHU8RHWdU\r\nAm1HF3z+RYOQR7vvQ9KkvbQkD1pBIVRgOmPa69FHDnuUUWSkezksArbKYLHv\r\ndKbyVouK4agEcjJJVRb+LZ+m/N3EgJKZDiQVnGUDnCl86n5XH/89B3rW0lR0\r\n7FRIRiiC3ekk156Mcv/oituiDVMGv2t3DoVaj/hguAcpgcXMSLEOVtqW+Bcc\r\n7aGpqgObXVtyjp0TsvnQ4t+12hP2HU41BBA=\r\n=p07l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c4a3f346533885df825297853610c1367fa984de","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.6.8","apollo-server-types":"^3.5.3"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.6.8"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.6.8_1651765964999_0.7269052281126722","host":"s3://npm-registry-packages"}},"3.7.0":{"name":"apollo-server-micro","version":"3.7.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.7.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"047e61c238cdeea4ebb12a15443cf7a244ac34aa","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.7.0.tgz","fileCount":23,"integrity":"sha512-pTX0rPRSJfzKkAezgVHC3G6ppd2UEN5y79+2yAc5lnHc7i7CaMrizQxW4xtUj+eO1jRKJ6+hrFBYNxYX4Rm1Sw==","signatures":[{"sig":"MEQCIBGSGweKRnRfdL6Afq5xQ7z/WBA2hltVDE7PKxR8uqGHAiAzonniOXOc+i/htAhtSrOgZtZA56Y4HRKatvVFFgejUw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidACdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSGg/7BeaDV3NCMGDVlOrtyZxuuOdMyYAEd3PWhjGDKEwjVGZq87MQ\r\nSYQ4mRoYuATPMBakVQgppEctk6PqqRt0NilBhQW2TrE8sKEsEMOQdai0RJOK\r\n+mOBZY9JawAq7fYXnNiJBY/lQak4MvdcEuGNHlvUqujAkUh9cmlOxuFkcNyW\r\nQO0q4HR20m+igowvtcXgsojhuIgivhERmnm6J07Xwdh4oYhQwrs9XNeLGnuP\r\ngPPiHjwzXukMe4N7prne/RhRVm9cvQXmzylw838PXi4SaQGH+8noI8JX2pYg\r\ntXgCaFbpkRfZiEi0yvUcpfWHmIJcVgE/zsmBtxbxeEDbS4raIv6OLGT/jsLA\r\nCcQ1rk23EQ8VHZiiQblLij48gf4nrA8VTbNAjSJjDM8E22CL4uUETbzcLl11\r\nwpmJxEzSO0h7WTwGVD9wJD+GxMSg+5GlZT1F4gagLD+krdYPXIljkDG58/Uq\r\nFFU6/yLPbsBuC6abSXU6i7YCcQDKJ6/sGYtNpuHkkagWr3DX1BIuyKHAmCNr\r\nipGcPGaIgAwHzv5BoEFZ28JE9516Dyd0HnaI4D9CruUMPObPrG6bndCTMyKM\r\n/2KI6YfEJET5aeTBIheIjl7yJnCWwrGBF50mgQVxmb0JyrCGJo3+heIKaDcx\r\nqXc9brlNpjMdXVKNFwRcpVQlXULI0bj0hvs=\r\n=ESYX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"58afc1a0e6660aa192b41483048cd75021be5cf7","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.7.0","apollo-server-types":"^3.5.3"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.7.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.7.0_1651769500810_0.023816616788443934","host":"s3://npm-registry-packages"}},"3.8.0":{"name":"apollo-server-micro","version":"3.8.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.8.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9d9cef80d5cf9bb0fdc5c88a70dd1510281a3391","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.8.0.tgz","fileCount":23,"integrity":"sha512-ySHfOvHd5EyqmEVO6SjDpjVBcnQffq/JK1u9VOfUyMxkqEBiH6KGwHD1G/wvg987r3+Sbdxm89/6AAqYi53HRQ==","signatures":[{"sig":"MEUCIHCdQCqGtiHWvgH+HwpBGFsMCqom7OAVutVYHh6gx2RRAiEA2Y/GmL81JdMan9SRWln/5iir7PnjfXgtBnW5SQxo6Vo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijB+5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDQw/+IZ5F/icLVo3dN82M+aJoZpK8Wes2v8H4osC8uLZ2QBl3RYxT\r\ntQ0BAt07g57C8TiZTj06zZ0YQcJ/enm4FDNeaedauh+vL0xQX5a6iM+kutPK\r\niJDg7a0oXvIWDfL93UgNOE/MkhF5DqRPor9vBrnkqerjh8oUKrdRJh5LBsmZ\r\nnJt14hGrpnk+QpqK4n9GzjYwS2GA0wLwrnxAJvcTMUjQ7pUTDEo02YBRD7p7\r\nHC3TULjadobLjI7A3IAQvlVmm12xExsH6YupWYL45xqcVHVKng7ktkEfLJJV\r\nZUU5Cg1uLdw3+jfpBX5evYwLCKOEzu3VjneHhQeENDS1KF3hcfojoQhAzfMD\r\nHV1ImD6XCUTEH6esvJP28+JQmqdZHqBw9rZ0W96b07oawB/ml5rmKGeXfeHp\r\n2aFpEJc3W07ue+MrYMJMSb09Drpb9H71VpFOSNBwBwYJgSxaT/aYDq/WNumb\r\n4dWOcrJGYUdMwgYGVeXEQWKtunNBPOajUDp5bV6LWBiOj6Mzc/AelpQ8MFi0\r\nmUZCVGOXIX6pAv9cz7wvxFhVHWzy0B6LmVYE/hXApLOaCU24VPoPw6bx2Hna\r\n+SNh9hdRFQAMl9qBLoGPcaALxwCkTD0u+6ywO+DU2i0yd0Dikyaq5oHwvt3d\r\nBCf6JkBTQgq+hich+4N9SnzNMA+g2Y3dbDU=\r\n=athx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c072d9f9a32ee67f4fd8f717cbbff6fe59a3be4e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.8.0","apollo-server-types":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.8.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.8.0_1653350328969_0.9738636931426403","host":"s3://npm-registry-packages"}},"3.8.1":{"name":"apollo-server-micro","version":"3.8.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.8.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"42719d57ccff68f2101370ea0e9c271abc35d48f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.8.1.tgz","fileCount":23,"integrity":"sha512-eF0lMQ+3+CMM4Rb3IEK4B1ZOYQaW22IP4sjPEojl6GeBDy434Hvb09jdF+qp7lFNVuMjG7YtRShFcpXv2y62qw==","signatures":[{"sig":"MEUCICpPashjjCrSEz7BCKFeQmWIds6PI2tlVVCOf6bZawfvAiEA0dryCOpe4l6PSU1PAVNQ3iTtlHCfdCN8cMDa8h3UGxk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijFsPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpirhAAiC16AztEIEyVXYThvGMOgm4Kp4Fnqs4hSAPxRZV0lWPhFTd2\r\n2Sfqkswv43jj1FOplQAyHnW3KUus5Fwg8iX45pTOzNbTthlh66I2YEF4banf\r\nFqnQ6JS897Xv42vRyw2em5flY7197UBtJQ5LW5QxUKP5DsQGFcIqxexhU3Mv\r\nGFn56zb9Fv1euE5XUhGSSw7jbOUQJrbaSnHwF9KtRfHMAgV8Nb4+DKJ8f/iy\r\nr01dkXpJuMZbzjoz3EZaAQQtf0O547ZSRfPWimIJp62gMcvti8NtsuYK1tWM\r\nsKAikWmW2PlL9qbAbl+UlTZAodH7shQ7X/pZwdqOoPDvrcNIDWh3nF//8Pd3\r\nuYzIPT1NJiRavOyC9JBM2srbA07w1EgJ/BghrmePgVFsQcKO5StjUlW9J24p\r\n50G6je4a+6w4n43RGH0qkm+1pNQ26o/pO1EnG3DU7DDUkFZIY5LsAl3Ikwx9\r\nbX+2Ju/p2uXhTopjJjiNddIDuBEeipyWn90ZuLrD/C1Y/MnaSKSHBxY5r8A2\r\nIRbgSdoY/RWKPbXMqbA5trmUIoQthFMUTBp9R0BSo82NoWxN9Y7TaQvEC2UN\r\nCK/PCACCXJGoqOWWV7US6rCKRhcUbrntyoanBWHPcyEHy+C4s1Q/qWt2hUxM\r\n8/thsZKIjsut9LQrNxROhZt33Y7OnQxHXo0=\r\n=qa7X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ddeb84e4035f00eb5b293b3c6ae54762fc465f93","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.8.1","apollo-server-types":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.8.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.8.1_1653365519715_0.1525907120703056","host":"s3://npm-registry-packages"}},"2.25.4":{"name":"apollo-server-micro","version":"2.25.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.25.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5f409946a1ed58dfcac2017fc4af5e4c6f732296","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.25.4.tgz","fileCount":26,"integrity":"sha512-tx9VC9VdMMZLi9TFfl/pX4jr/qqhgu2To9KI5jlXzYxowROwOt/TwTx9ClT77YdJDoSIAvippYSaw+njuejN/A==","signatures":[{"sig":"MEUCIHoyty6f2EHcaNGeaS78HLXxc34c+/kGfy4Kw4YjobPiAiEAoKucF53YcGJjI6QKDLwstVDeXLEvJTfG3lw5OkfPBjY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijmdJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGYw//fm67v0JseJqpzIlgBshcykvHACe2AyZojWDerTQSZyhh/nav\r\nvVZIAnxlAyp5lndGsIwkqPEydtZQTAA+qaP4gP5fk4F6GcMsaKwaK9WYDplG\r\ndlHyZne7ggQ+EgI6s3bMn4KhTfs0I0W1zrO7fJ5V6Gh1ofW80bNkOryW/EKl\r\nb4TZwyfHZkVBHb90qeGvHYsRLRaosnJvuAJk3HJWLoul2yb6B0iYrqztP9/x\r\nGzHfMCPGp6ClmHRfYEJhPFX0BDJGRHJxvE7Tsi0C3FT0p5huGIBHfZpVd4eK\r\nICCX/F50TrVw609wVN/a3O5ojwLjfk8gT7KjR+kdb22wgPM6hnoOLyN5bcZk\r\nrmRVGdewp7QlJsXacqKkTK1AhnvgDUamE8bQY1IEe7YsMCAuEfa9MRfOHVbm\r\nXejQ3pzOWeuDRNq9qgp38Ev38tH3r4yJlZWaSRLQ2p+zOyJ4rFQEPGLFoAQP\r\niefjT/we9agg4Rgwsxk2BrKSoJ+BXrBYzrvAZXJgwy8Vocs+04MtjcDb8myw\r\nVrlopJq6AHE/PX5WTpIhUVEhwoN//ikIpP2jdQGly6vllacASD+T4d6RoaT6\r\neiDbRi8efDHYyoZtzaXO14tJirbW+6nXlT9fQpDLJn3/gs8NHk6nITT/uU5V\r\niwMBEfJG5KrmZWVpG+8jkKKUnDLA6dwDtKA=\r\n=rUxE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"ae444b2916deb2fa37dbd8fa091201235dc2ec6d","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.25.4","apollo-server-types":"^0.9.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.25.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.25.4_1653499721192_0.6726890927689795","host":"s3://npm-registry-packages"}},"3.8.2":{"name":"apollo-server-micro","version":"3.8.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.8.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4c37fe219952991e1f1094f339a1098a498f8c32","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.8.2.tgz","fileCount":23,"integrity":"sha512-6FMtni4+UGFd280n29IyW+JQ1EnJEmTpDtpTI3ZPeg0cJWlIJ5y6si2O0NuzApDmzkz2K+LKRLEIzzrnxsP8ow==","signatures":[{"sig":"MEUCIQCQ3/us5H99TnjCBpZbxKJIAN3hjvEHVfaiL9/1evfq9gIgB7X8VYLTqnaz5ljsDi3NCqliLqWl24vBwGCKZK/6pOs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimq2rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqH7w//XniZmJyQA7IzYyK90hZ9LEfbRXsWY4JjbF8+aS69wulm1JGn\r\n3ImsacLiUSaZ2o+QPNSvwslJedHQSJcvlsui8d5Ws9UKvIT7vcCXlNCZDFl5\r\nBT4wluDUgnja2eu+FxaSPooMln8n3P9zy0yNYLmF6seaM1qCbrmCn3badAkz\r\nYZs7kw1r74kId+/qqlpTB0JiVucykIqM6Yge5uTKo1uzt7QcJ6KuhQjs610s\r\nFf1Upfo9YJqqO5Btf+4Ev2ddWs3FOOSZEd3FiTpSCQtczEQwYbkboPWDvVwH\r\np5deswmFUOlCtXgeqdmxW55aJgoO9xXQx0iHPi6jW7oFhpEjZyVKs7yu+7Fn\r\nFhpaAZ2qCcRKOVxsyi+m/JjgXNaIPuLwn+77GPqDhXxwrUnKyYwqFnf/wdkC\r\nmrbdWIJKf+hdFysd0NL4cN8gg7r0HCSyiI9aRdq3eIgx+ECmOY1xnhelZrVh\r\nb7QjZ1MYGel/MNSs+cYnomTZplbYdNG10BxgnNCeO4ACDhGWBovf4Io/e0TE\r\nqfaX6OFM+SSMoJkKzdRPJI0ZKz08hl5sQpyKFmfdF2NSYLjQrGKakXM+5Mh1\r\n/Pp327hbJvPztW4jxzyX7MFQlI+BCGkswdDOyYNpj37wgubl5hpT0LX3U5Cm\r\n8CBqka9kWt3J7JuoOZYUl3l9zmzz8jHLo+g=\r\n=HaPj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0b4e9349da13459cf279378cb311dcab4e3a7556","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.8.2","apollo-server-types":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.8.2"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.8.2_1654304171502_0.13579560266361757","host":"s3://npm-registry-packages"}},"3.9.0":{"name":"apollo-server-micro","version":"3.9.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.9.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2fe4205ecbe9a6a8776cf4cfd3331ddeddd55bd1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.9.0.tgz","fileCount":23,"integrity":"sha512-FinzYgs+aLaMgnLtrQOkGJqpJe3eCxHOOuE2XV2RxWM8ag2LUWZfnBkJv1ixQCRe7VxCp8vHgABtuHL4g63yRA==","signatures":[{"sig":"MEQCIFzW8nBQ6zHWfaWzDnu5hPMtOWPd60XZ4hUgkD6+F1kqAiA5xQnyX8TjJlm7ZxNX36hIJufHfdLmMe+86m8xXZLJZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqg7oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR4w//QvYloneiZvtvm34rU9qMx4wv/v2tGXcARsGFsEDmwKbA9FbY\r\nK86hlLGGFn1gRc1ElW6UQaG+tV2VRNOCCAGo8nJsM3mIY4yY362Z3XnTTtNH\r\nq3YZc715pzDaUNv9uk/vFAOy9uchjjgQVy0swSpYzLYHgrz+WGczdiek35oV\r\nydCEqJE1tItBK92aVZdEzLGkD0UFwYNH5Csfma9ZMc8kC9hwTl4/Z4Fst9Zb\r\na46pflVoahSo1STsJtQfLms/qXhLFEyFoLkjN8fHDrppiX2X0NIPc11p3bmr\r\nNExmIPUctxc8llLmsI/MzC1JkoCM7Z9BQBdRqvZBxMvz41mdcyFPGiUHQBSI\r\ntaIfiP8cXV1/eCh4gCxbNo7S8GuJzLAEk+MaNnREgLnUsBdizOwdbZu/esfo\r\n12n6OkV/RAPj4ALeTXHkM9MX4XeND6qrRm1V+cT9DDbYTyV0FLC+QHMnNxQS\r\nwS17b8xmp/H0bBklUZMxHoDDfYk+7xTYAGrLOvE/ijg3FzdP8KpYa4+n9tjl\r\nsI6nFcP6RA9voXg0XJgSYTGX8zywoXYFg/i2dN84Ta/Jvc3Mnx2kzHR8u59l\r\nB8ChOsPvTjfgHEtMXBWo97kayVebMSToRNcYWRmla7/xQfy53dVz7YXUzyLq\r\nUteUumMQv38KkeBVtOkw9GjPXte9JVGdPF4=\r\n=QMJL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"36ecbb116cef0b8b62b3ee3b557c4db8c975a406","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.9.0","apollo-server-types":"^3.6.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.9.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.9.0_1655312104541_0.27999719092092357","host":"s3://npm-registry-packages"}},"3.10.0":{"name":"apollo-server-micro","version":"3.10.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.10.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4be8d04183b85835ded73c220a932e8a22e0c68a","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.10.0.tgz","fileCount":23,"integrity":"sha512-FiQb3hGT22IFF6n+O+ji0/LHUAUXmnA7GpVU6q1fM2numIweU8Gk/bbO603wbqvUothTDNHFc/YNIo6gXCPIcA==","signatures":[{"sig":"MEYCIQCkCGRVcjYk27inUIUxEhvQiN4NP+4zILjezv3ie4EJUQIhAIG/atdF3w0J4eOwexDaR/qavMYkImoETSaYYWeB8RmH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizHiWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8vBAAmQ4UDoYWztvdz50rSmNVHzA78ghENDFROhLO2XR5sdLPJTYb\r\nRQbTmMUK7pT3MUlrVjpkPqTTA+Xht+9T2ZSI9Vwu2cLaU5axUMSfGRfnGKxf\r\nPXvocyxehLA9GNARenPs3YluMtZsuxGVJP8zkXpRnwZ4sIVXsUQBzhwkJupy\r\nhhxg4Pa/Y1KuETc5ouoEoeqTdpXMswl8HVCIxEsl0fE0KwMLEh1yj2s7yDH3\r\nde5K3Dzv2pAFUU8YSZhWJVUYA8lGwB6uo/lR8QOtBAIsigB5GyQjn2I6Yjmn\r\nX4LaxlyAzlhkaTO8l4TWa5VE/4lUnIZGykeBQ31vcvIZR/dl58U7FCia8FHc\r\n2KRycE+mqkNSeuzvcpa/p+BYxfPDN/6Uw9iXP1xnw/xOVKc4ekDCxhKwPp2s\r\nMxdN4s4RYyQMVtw9Qh0bqC4VqwvXPrQgPWTASKHM7mis/4oiWCnfy+2e7/T4\r\nJFLN4TlbDfA03Dcqns1VWTCLsI3EwRjKp9HMdIi5IvuZvLwGbBQGjzY7u06Y\r\nCsXDdm8msCtEbEuKvV5jpapyHQrH0AOstrULwSMDfhXne0xuYKZJfEN3MYeT\r\nkREv5fQJRSq/YWf9k9ry/u3meFjw/8blgyd8+WI6Pu5W0OxocPsABSEHYNVS\r\nlawGoaenaS+/3xJ3X5y5NXJT0UkhIYLqyxg=\r\n=OYie\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4041aaed6d616ee4b06fced0af482c73b6f752be","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.10.0","apollo-server-types":"^3.6.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.10.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.10.0_1657567382372_0.014362552320397626","host":"s3://npm-registry-packages"}},"3.10.1":{"name":"apollo-server-micro","version":"3.10.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.10.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"b58f13f95f2f864bb11705fc3227d120bbf8ddd8","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.10.1.tgz","fileCount":23,"integrity":"sha512-0+UP6AHouFh1YxAuCZiO4MbMb55OufRIv/HNAKnwcBgn2vCXVcb/ai2vuv06dxnxbvKcJwKYHsJn3ePgMShJGg==","signatures":[{"sig":"MEQCIH5IuOgfdzxavZ9RhxwD8WP4okhKf/aI5uXCNV9/TFMYAiAr5VhQJmDR89qPrSCdGnZT+R0S6DQIhoju+v87SuGiMQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8+ZbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHSBAAjUXFFgiacGCRzr/JA/gMseLGS0Dj2SoHp84LZALY75nBjQUl\r\nzs5/C6Srp9TGdF1SeZC6UPpvQqxc/KuA0VMayG7A8POEhivgV92dsP1eJ6TO\r\nSzQF0GEeHLqXu7OYkrX1GFXSm5+Wme4kNiob2dHu/yl2jpZ4tqa5DS0v32RM\r\nmXpgxe07aBWPHMtUIzpbvZCxIfvowxi6qcUaF1JfTeNjaN/k7CSECNDAKevp\r\nkxkmubERFju/SeCaT4Ixq0fJtp0+Fa0dE+eCd1J2Bl5mhdSG+BYGKBCccMtj\r\n9w83Avh3mI6OJSLzlfKStVgNHkLBqahmsHDXgNjEnyntBAnCtJIohpfx6OkV\r\nBQ5Ug6EhFXyTwh1DDIhVoZAujU8Xp3f34ziKVs5tzAQu29ib4l05VHqmtrz5\r\nvGsXuyqhqE5HRydNa2+XBThZZkR7wQ16vKgPYzBxMdHQo4Yn8E7pQnKrHeNp\r\nYx2ASQ39rR0ZmL8Rtn3jVG21AHGsSEIZaBT/d+C+ivXc/BMk+Eoe994BPHaZ\r\n3uhaRrOsvlMfmSu8Wb61VnpL16HsJa8xGDCHBI1iP2t3XC18VkD5SVKYNlFn\r\nrUqsz4okjM6WxcG2KttoY0+UGKHGF3u0/PO/bJL4vNCVu+m6TjLMTuJNLgkp\r\nX95eUrsTQAPVR/QBSGjubJ3JGmtlk5O0Zwo=\r\n=V/Be\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e6097d614c9ac6887b359529cf27c1bd1a5de59c","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.10.1","apollo-server-types":"^3.6.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.10.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.10.1_1660151387151_0.14419142887332503","host":"s3://npm-registry-packages"}},"2.26.0":{"name":"apollo-server-micro","version":"2.26.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.26.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"69f50e229d303ca8d1cf52ad53a525faf291db2b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.26.0.tgz","fileCount":26,"integrity":"sha512-l5ganU6+/zwUTQPGF/FJGzRrqRQh3bhSyPzKMdbmQ0F7AIhP1kBvJ4T3b/0e3lha8Hri3tb5rG4PJeGjkQyL5Q==","signatures":[{"sig":"MEUCIGVPASg62rmr/8fOxiTUq/CbpZHzsznGNRI335a5fTKfAiEAjYkL7Mz2XFgQyrvRuMQiptU3aBsmpFilblUBDYdoSJ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/oMBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbKA/8Clwq7raPKaU0PPfkkb9ghlPH1JxxMJFevpktvGxeh474yWtD\r\nZX2x4oeQlsiGX7JQxUjlT1QqcCmFBo6k2teVzAyx9ZsRXL7XKQ0VCFh8J3gm\r\ngH/QfKwg8wAYLvCWQ9kF2kUz9vGywbrZInhvtcGd8mo0rt620lUi6UaSFea5\r\n2LRByYvJuw4NZwJzXtGqsRW2+4D6DQtXpPTwaXMLwpqRBXck0vj/7zyUYmqI\r\nFaJO1gIaRpIGqf39wkGhI9FI9L8PSEbGAOyB0uXBruwPSwW5dPgJcaGMmP5l\r\nM809EFVRNX/dOt8Bej0u95wCm3L4S83oaYmP9UvNiWymqMae8C3/ATRwTFAu\r\nfeIaxEbDPJmIMMnblPNhN3Mw86FUB/mLxuX6Mgk0gFT5GBu2t7GIIhchKopF\r\niam2Z/TIGBHUrM+n0O1NeINogkxG/2Q0k5odY9ND47IoSJe5ZcH60BIu29Wx\r\nN3jMUwq/pT82wk1yJzExojD02NTcKUw3cW53wcBbkjBHivTW6J/AesEnBiGd\r\nvrbSDZ6gWIELB990tE+8Zt+H4F1tqEPl6Pz5gHq1YJEXRh7qWGxPXlP03fwp\r\nGXsC4mwgrMppngYhtm4pdHyxsNILfwpRHnnOcYK1/HylBjRdJcY2clHiYmBg\r\nvfIgElyEZqCgw2xL0JEJgOYDFSAI/pt1dYE=\r\n=hEan\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"91de501bb389c07ccfc5e684811153267b91e9ac","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.26.0","apollo-server-types":"^0.10.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.26.0"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.26.0_1660846849389_0.4907519856726019","host":"s3://npm-registry-packages"}},"3.10.2":{"name":"apollo-server-micro","version":"3.10.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.10.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"dc39f0b922b5339cad42f8e40e462e9d1077856c","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.10.2.tgz","fileCount":23,"integrity":"sha512-A7aXwYt6/TdK44SWLsvxuJh13xbjNWGO7oNEWrP+x0pdvKh/BhQVM+L5ZueTmKtIQZ+F5w83OlIYbj6UH5vfGQ==","signatures":[{"sig":"MEUCIQCZdVDxvg9tfuUSbtE9aED8kcF90HBAqg9tPrf899Vn9AIgXYohvupaEyawos1siIiQmiJJpLSYmnQ1KH16vV9uO64=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCDLkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3TxAAilIg8EXm6F2JzjLRCvYfAe3GRjmDjtT3TvoZa3aiC4ppKfan\r\n4ls2B7v7MeMLAdTjfWBXso/iTqaLF2S6drgEiRs8oMB9O1eVt8nEGSsbOavn\r\nbpNjEWf8mMyIvlFzKK10dLiIHzvQvZHBGRUJkkVnxV8gVXxBCUPrwsqajJU9\r\nhvXvZe6+rdv46i4nqjg7Fr0Ob7R+RZwlO6ioI1jEXn4Ra6+msv1tURE54QdN\r\ns4PgTc2fqkh7jEY9izgydhkf+3zo10kX8vkCa45GSD+2VjY07LKQz/5B/ZUK\r\nw50Kiwc2IWNwdNhRKe3yUU36L+jHH5y2j1DLCFkYNGPTI0DSKBtspSj3HrkD\r\n6v9ASW9tkKpmCacPeTiWaH+sBYEVJhlGwYOMJlIpQ4rfH3OoER/j4UuG7jqw\r\ncsuXVTwg6ggFaklQ+OowlOU0696f4OWrnfcrtBof+7VDEeEii96kErwBLOPn\r\nMlI0LqVzStzebOxvF5xpVvq8dPKKdtKk/VFe5fcB5LSlwCf9wkGS6EIq/+VZ\r\njI565RdpmRR4t3ElDIyTCrKzBxFanvWZqRC/158SqWIxKLYsxhhgk53L7KN6\r\n6iEB4jtEdd/3ov/f0ufd4uDZ7H77Dqn43jCeyVp9GnyThOp4JWgEkCJJWGSG\r\njDLqhQKXfgoABfP9zle9znYYNrrS7mQGGR0=\r\n=HIMW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f6c5c9fec04c222aa15272b90d203ddc3fe64857","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.10.2","apollo-server-types":"^3.6.2"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.10.2"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.10.2_1661481700232_0.3549927176680392","host":"s3://npm-registry-packages"}},"3.10.3":{"name":"apollo-server-micro","version":"3.10.3","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.10.3","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"d8c79ba2275ab0fa4d464ddccc9e661f0be35a57","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.10.3.tgz","fileCount":23,"integrity":"sha512-qiMncgWd1LfuULd/DQsN3cWoRrcrEE6Cb6GgAN2DkiHJKQyOGwHn8pOmJ/SWWd/Z8xpV0C+pAk2PF+j7Ej2WNA==","signatures":[{"sig":"MEQCIDMGKrE+IKt6ep3wV665UhaC05Td4LnQRSGNT6oHamcVAiBiW/82V5QJ1Z25iybXkOBNgBKtUs4ifUq84Bopy9pI+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQKWTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1XxAAg277qXu+loKatAK/lAffd32mKjPD9hFFkz2he2ayrcVGbvpY\r\n6aqM9WbqdCNipPh3acExr2pWcO5JmwLRdJeBI5o3hTjIKDz74lC4GbV6moZf\r\nyTQ7/psAt6cGd3AOU/tj3bAJnJANOOfRsL2x0gP0NnU+0hNnC5DMHKsCgoNk\r\nTBr1Fg7Yz400UYyjNRvWu+XMVdBF/FuXVpXSKKfrrcI4z/us1ovCu4UQeuEU\r\nF5c+gyE1AgreK+qyF8ckzv4/kNPk3oB9dbiqFL+uAGbhAg81u5Ne8v07KWs3\r\nb23Iz4Jjv5WIPyD357sp/E9968XLNzry8JgMpWRPZfTuGdARzksVZR2lmYHT\r\nb1CLGkaqhSUGYbH4QyoRttcuZ3mJgd3ILSmAZ1eFijBHKKqt5gpDEZfiPAQg\r\nS8yIZxiPPyHjs4hukEgntGHO74ye/N6KjrVOS1+3umRdDTcpRuuQpRgnE0eD\r\nOKh0Q2KPaM9taeeHGG9BmJW6Wh1iw/LrBxLiLoQ5ZY7pAS7cyY/NLkvC7J9X\r\nv/eKf/7yOYDJpg3kO9wZtqoS6kCYV8GH7g8whR4Ev8UfNa999E39ZMtimP8x\r\nXFqAoW6hYc1sDnyivOkNv6Nh6zaRLmLAampFrO9RsE6psW4PYZ32iXgRCHMS\r\nWlrU+qRnKV/SdBRhapvOb/saTDKAAwN5Yig=\r\n=DEZD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"985c0795579a1d39e7b78edce1c9e2e7c8facf82","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.10.3","apollo-server-types":"^3.6.3"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.10.3"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.10.3_1665181074837_0.05651799352112108","host":"s3://npm-registry-packages"}},"2.26.1":{"name":"apollo-server-micro","version":"2.26.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.26.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"fdef741376641653422b572d8b2d7311f8034ce4","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.26.1.tgz","fileCount":26,"integrity":"sha512-iZy7LN05hlKhZTIVMYwVvnFwIS7TUMIpgzOpfvW1ySrMpoL1L+qdUKDtgVP7NPJdIz7vRvMyGN1t1Cz5+//3Vg==","signatures":[{"sig":"MEUCIQDeKZkw9RwhHrEeXfgeD8FSYLkndEzIQ8E137gX/qIgcwIgdzAkzEMKNe1PE5wKRTsElzCCCTrSXItg6vZRyEos1eY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUY0VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAMBAAjtslcSdMCTbdGplmYiMf5s4BEhZsMbvI0YSTZlV/6+RijPds\r\nR+JLxoWRf0f1dZ1j00p2KX7/BPV2+RD9lrYweVcZ6pMaaBas0ftuP4rU1l5g\r\nMQgCgSEQlMKA0tZDfE2jNpoz2j9eAlkXbnSdge+kSkGYe/aeqxa10irHOit5\r\nSaw5pMLB4/hlST4sMmqfSjq7aAITqtgg4N9EUJ7wSXO7WCtvbqPJiBtn57M8\r\nG4gLS1A2vnygfO7r1qBueFYjiSJg+ITbkjiEaVZq9U7r9ss4YQlkybMKUpqL\r\nZykXf6vqPU3aGXe2hOW997Im5N/1wRZ740jx4EJ9DILuC5xf04tTEVu6H2D7\r\nzfSDNmEfcP/wDl2aEaEjdMo7uAicO+PQW7yvqj7cLelPbTeS/ZMHcyPscMXT\r\n8sgnoDtl5Iq8XipLWICFel7mmAZJeHtqZWHmB4D54zYS81TLAJtgXXizFAAH\r\nC+vqFs8r8sDhvgMYv5SD/c/z0tIm64csM+O10t7pFHS4QPS2ixOh2GISAtk6\r\nHPkLJvvdSPcWOxrZqIsaIeSbBMqnAz727s3y5GmgL7XQKfRmbS1Kxl4w2Vdl\r\nINykbmh/ezxPUhZNkc8EDmk6FR10j2hRdZfMQinUmUFY4sh2/tSiQeUXeeNr\r\nDh9JkocTx9AdhmgCy7sOa8JuZjEyiR41vx8=\r\n=kwto\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"84852fcfb40bc5ea83c341dba546464d6114d7ed","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.26.1","apollo-server-types":"^0.10.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.26.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.26.1_1666288917559_0.45405338620887314","host":"s3://npm-registry-packages"}},"3.10.4":{"name":"apollo-server-micro","version":"3.10.4","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.10.4","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"820b7b6cd7e08fcf7e165e5f89d47ad8a36ded1f","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.10.4.tgz","fileCount":23,"integrity":"sha512-ThJV7FZ+xLJRKrZlrWydYsDTWwN4diaocWfjam+fnv+nc6g6MHjTGLQIX5w+OKQgUQY2/SAGUgEeIAZAC8LThw==","signatures":[{"sig":"MEYCIQCg6giXh7eAAr6tI4pk1tjaF0FRYVKlvonZks3V3DROUgIhAOW3ULc7AAtLE0Y7hkgQ8LFL98mgRKaP/539zJrp5bl6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYEOSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzyxAAloFyVEFO5BH0iHYGBdlziNVhjrfsSF6CP6OqRd4eAqDM43IM\r\nAEhfTCwM3pFdwdMkS7B4orCCR6eV1g0usNr6TGWiLcyJ3Y7TlkWKGTYqeBFD\r\nh53sEztD6s11jdfPnsGHNgE2R6QfdtEZ0qBt70Kc4k3GX7ZhnpuxnIlWTiR3\r\nMMsWGufzltcfAiJbwuoI1ouxYNxxbXw242UmrjVs5Z6mepjwunVl9/ZkHBnT\r\nN3dSiPra0Z8iGvXIPIs+nqlrA0Q2pgXtjORfhF0LQY1Qz6+Px1xMvDm8u0kL\r\niXiC7YMGkWfcqFw0Fi3VKN/BIavgwMJ/Vys53HBlVAY25oUCYzzY0WBvIq0U\r\n6sUbwIUzjQQBBwzVglpZJGQQhPF5oY+vVRxcoHn6o73V3I3H+rKklIeaBiSk\r\nQEZ0t6D+WW2JHrpWFFqJWUvyOMV8kJ+gyNeIQU5LHvwIxsW9Sr+baQ1ryIfi\r\nAzh+C1hSlqiypGS7kv3hg+lv0SLDhKQy1G/nrVJ363ZdtfJwWTW88DYfOdVu\r\n1FPS7FqOyYWrGOyVXepRw85s46ZX3s8qtAUJdmhHheplw0yGbH90kF/l2jIs\r\n0lws42sbrqR1sM2molKQPZj1OyEGstzmQclkYiNWhyVXdd82HXSdBQ8G31jE\r\n+4gzCv83tCwuK1Lx5bQwfbNOnkj+2/MS8WM=\r\n=dsW7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f519e1d7de8564259eb1c8c1c7523669bd9ad815","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.10.4","apollo-server-types":"^3.6.3"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.10.4"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.10.4_1667253137835_0.6892644429621764","host":"s3://npm-registry-packages"}},"3.11.0":{"name":"apollo-server-micro","version":"3.11.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.11.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"2f91518b5b8f4118d49e47bd15464d82ffb471f1","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.11.0.tgz","fileCount":23,"integrity":"sha512-ITtwZRpRib/lDsLIOb00erNSptHiPy+LFlA44QnRbid4R13iZDUC4JVCp29LQ2/YvBThXrr4DSvp9NE2wYIysg==","signatures":[{"sig":"MEYCIQC84hGmbD1KKYGx3GskYR4sDLFXYzLIcqOPXVJLWSU3iQIhAKZaHA0Jxo+5JhWhAd1hPOVV7muuVRIH0VKHJ+/pqaiZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYpMzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXYA/8Dggkpkz4v1QRPA5k1oZy7QUzHfAQhIoTSpxas84oa3tIUgWE\r\n2mrTp32wLwRA74cM9gguf9PWyTokMCCdWgorkYkhYI/KcFnRy8JmcfqdmXSc\r\no3FYC5DnEm0olBJ5xw1m+WSdGKskTVaLnhXxqCcdqWB4vRMW3mWHCwTugpdw\r\nfJbPcY1QsDawXeCqclxiPitb8x/VQMJZzqlRklNv5XuQV2tY5EVmDOe5O3wu\r\n8BD5RXNMZa9blxkuZ4MqQI4kTK6ck3VLdVdS5V45WuyP/iM89OvtFMmSrhne\r\nhYJQc70FHYJhKRk8uVoydfI6gkmpEBISvFu0AbXZjU8v8H6UWsjleQ/J+4hH\r\n82+L/kCiimWy1My+YTbztvGxZsNm9gFVkmXYd/TU9ZqAjjouo4lLUo79P/oi\r\nN0Vh6pN6vT7OGvmhmpq1wqzEAcRq6FVJWiYDoRh0jk66FhGS98M+C6T27fBF\r\nk7JnLPtj9o2vTkXOunzkOYANrEiyTmXG1+flZkZ5Hrg7QAyqT+IdjnuGhRG1\r\nkObtpSUk/atTd7FwMp2YsWLgRVzouGiFX5hoe6JNDiP+wfprgLVfJ4Y/Aveo\r\neSkjQvNf6csJvx4UhGOcBVRKIqDM7bLw01V+v+auTlzhTckg4xuO12lwJU6R\r\no3I+xNwwsOxdqJ6mervJ2lro/f8xM/vTS1w=\r\n=Vc74\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"538151b9f30dfc91036eef2f8f65fbf7922d861e","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.11.0","apollo-server-types":"^3.7.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.11.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.11.0_1667404595279_0.05824993916297316","host":"s3://npm-registry-packages"}},"3.11.1":{"name":"apollo-server-micro","version":"3.11.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.11.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4f1b7f68ce78c3f91f9a7cfbd1c1301f0d235ab7","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.11.1.tgz","fileCount":23,"integrity":"sha512-4bETccnRotMQIg3ah4/NAWPppB05i5ePrTOuLBGBBQaV8bz1E4Md3snxSB8JkANND7sXmH9OCiKKeLFK8q8JaA==","signatures":[{"sig":"MEQCIDxl6V5htJersWDWISWl/dfZ2PRjVFiGkaBevACCSxBtAiAlbwY8z38Be7OsvmZ2N43s4cJCKzxG/QER0gFvYSJqfA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYxLuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpx1xAAjTe/e7MEeJasYapwIeH1nJJnYM7WA49Vx1nEd9v3V9eCfNcg\r\n7F3pR+paIEUhYOBFuMkasMb8aH/d/uPXK3GHbGi2itamVM6TUYcsq9RESpZN\r\nRzeYTvuCDqj1i23oUZyG9H+8LVq4zB/uf0PfMq10tIL50lGUxMQwHVjWuTvV\r\nf9pPqb2VBDWBDZ13tmRnRP5QXCTs00giq+cCf0KLvFS1KXbAfWFNY/6Uq6//\r\ngEvGIeNQx/kchYKLEJirdmepgfLCiXFlek4KgVm707QeKbDzimVbXvVoDzat\r\nvEOtYffTORoeFFALFb2d4CKFB9GoCkFGDv/Y1e65oEKCmAfrf21Pqsygf5eK\r\nhkB1528zmYFfk4V3eQrSzjNUqWWWrmFBn27J3kAGjiZa8+g6E01ABRLuCfDz\r\ne9fvqMpimIw68mnniFoKm3kmzAXU4RvLnpw2t3UAjjIbMkIiEn7hRUY1q7QO\r\nFoIUe6ur7Ue8tOCP+Z0HH0I4im+Y1IiSezmelAKgKe263wpofO6LSYtRbcg0\r\naKakmBx9qw+1VT/qzdL5eI/+yvk5I9cqX6i8cPDnTbXw876NJqHEUUeKkE2h\r\ne2mTnrUA1cV6F722X6cuvkH+MjHA9cO/YS39lOBJdkQ2BrZ6oGe8iFaiP2Ja\r\n7dCaZaLhCdtd/zBFIzLpZoy9/m8dG05F1Ko=\r\n=8N1D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6247d96ba90de6fa9b45995dcab72758c99aab78","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.11.1","apollo-server-types":"^3.7.1"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.11.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.11.1_1667437293846_0.4679409079791885","host":"s3://npm-registry-packages"}},"3.12.0":{"name":"apollo-server-micro","version":"3.12.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.12.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"34c9c4987df8a51c2ee21520ea48227102e602de","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.12.0.tgz","fileCount":23,"integrity":"sha512-Ddq+a82QezaG6fgsiQONTB/8gZ8nEqpoYcIRVKeyffh4OryLb6UMziKcXOvy2AlTyQmvWmGAVCbjFRGmDCQEhQ==","signatures":[{"sig":"MEQCICiOonhhZj5pe8R10FxSQzaEwTI2/kiXS8wcpAumAypTAiBj162KuYETs7XU7B1EY3lNsx/KbWTkSf5pncmUmEnT0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAPoNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1Xg//Tovtt89cgqT8FnTLEKIV26mFo3qXqRAEVeshD8+HZrlvn2Dj\r\nswofWR8eEYnt/v5a4QbhgZvtpGr42E9u+rHlhPa736N2vPRY0mHxgmjctns9\r\nRC3YsuoAMJ6DbQs2c5t+TVwpZPDOnrRG18kI2Uph2Rz5NgaoJ5pzaQrwUSZ5\r\ndpYLjdbV1O/lKioeONruAkCXPjLfF1eu6Xw/YxakSPMvYNUeBCRbcLdUr4Yq\r\nagQkGvOYr47iYS6LEtGsks3p3xSQJjrOBSdvg6laNN2kiCyEUd1IEfdf4PXn\r\noKdFZOu8zbGPVGyFVyAEwaGotdUfVp7gUW178PjIAWIUNX99QZ3vRYdsHGay\r\nm/2tSTZOtqYaOSeXW1Cmy1cEAB3bgnktA1QQgoc/p3G0YtL5JWBspiCWP8+c\r\nfY0yV97WxLohqu1IrG9zulGIwIfZNvDbBJ6jwK2IX49Yrux3b2AVLnF3pAJk\r\nVkipKPFpPvN3oxf9V2yHN2Z5dsoUY91qR/0/ejoqilPwZeNKjW36B7H1Ggd/\r\nGhHUMAHrdrFpCkUF56z8Y5H+UiK0UDc3TBgSklGBZS2qUVtFDGXRLgGiV++w\r\nCmHzU80mBTfEJinZFR9bqBNHu54rwck9tEfZdvar8RDq6SFO3E0LVdd0LPpO\r\norN4PA0FEIKgCoh7NyECn6EgSBRRVehuWQo=\r\n=MCiV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"fac578a32d5b6e21164fb649fc61d641d0401774","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.12.0","apollo-server-types":"^3.8.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.12.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.12.0_1677785613512_0.41579150139747245","host":"s3://npm-registry-packages"}},"2.26.2":{"name":"apollo-server-micro","version":"2.26.2","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@2.26.2","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e5fab9519bd1966e741516fa10565c7eab97ba11","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-2.26.2.tgz","fileCount":26,"integrity":"sha512-KYW7b8j/HPTx4FgZ0LwFcFgbmd1xHb316N1y2DvteevCf503+HzT6rdYbrV+rZqPeZmmRwJbsZM2C/gH+gIoFQ==","signatures":[{"sig":"MEYCIQCmwVA4t2UIU5zMmiKhuEM60l4ab94njkcg5KiMuN0j2QIhANOk/eB+T4FBVT3ppr0GJptnEP79LtxVeS3dWOZOYdjd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42934},"main":"dist/index.js","types":"dist/index.d.ts","readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [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## Basic GraphQL Microservice\n\nThis example demonstrates how to setup a simple microservice, using Micro, that\nhandles incoming GraphQL requests via the default `/graphql` endpoint.\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => apolloServer.createHandler());\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler(); // highlight-line\n  return cors((req, res) => req.method === 'OPTIONS' ? res.end() : handler(req, res)) // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","gitHead":"8fbc66cded6549d5a61433c9fed26775e60e0648","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"micro":"^9.3.2","accept":"^3.0.2","apollo-server-core":"^2.26.2","apollo-server-types":"^0.10.0","@apollographql/graphql-playground-html":"1.6.27"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"apollo-server-integration-testsuite":"^2.26.2"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_2.26.2_1693429372857_0.4351898390348663","host":"s3://npm-registry-packages"}},"3.12.1":{"name":"apollo-server-micro","version":"3.12.1","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.12.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"8145eb7d6c04d75e6a6bfa859b64d5de2189685b","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.12.1.tgz","fileCount":23,"integrity":"sha512-KOcc0RlCVa7u6ZLekjeQGK9x7uhNaCWo8SqQtBkgZ4KC6C6vDaCCf/3btbjse/x2Xcb+YX9Oix0V/cBI0gdn0g==","signatures":[{"sig":"MEUCIQD1lsZv+gh2pwV7kUAVQygBb16WITFJK2C+k+TLFcQt6gIgBPsrJ4P6O5WA1ELNJm4kGDQpViJFAyonAOUVPZ8fSnA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ea2e2c3e071afc9144af00cae7b51720b9cc8b32","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"The `apollo-server-micro` 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-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.12.1","apollo-server-types":"^3.8.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.12.1"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.12.1_1693430235448_0.021550266859174272","host":"s3://npm-registry-packages"}},"3.13.0":{"name":"apollo-server-micro","version":"3.13.0","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"apollo-server-micro@3.13.0","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/apollo-server#readme","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"9aaa8acebb8ea2c1148e31394f69124bfe4425bf","tarball":"https://registry.npmjs.org/apollo-server-micro/-/apollo-server-micro-3.13.0.tgz","fileCount":23,"integrity":"sha512-EdhhowM1nPsOhcJGpnzlcuTody/Wf7xjj+NYV5Y3qelUC5xaCYPv5S/W6CRgPfsNwoYWwdKdaAgDpDjucrwbbg==","signatures":[{"sig":"MEYCIQCf+Q3BDbYm86u0t/VUvOqBbexMsT2rrfPD7nP66vxu6gIhAJpD5MnNV2UEfDXrC07nvvyiTzbke8/TWj0j8JXnPz5D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30480},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f93284e853efd6da46d91ae40da47a2dd15b61fe","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/apollo-server.git","type":"git","directory":"packages/apollo-server-micro"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Production-ready Node.js GraphQL server for Micro","directories":{},"_nodeVersion":"12.22.7","dependencies":{"type-is":"^1.6.18","@hapi/accept":"^5.0.2","apollo-server-core":"^3.13.0","apollo-server-types":"^3.8.0"},"_hasShrinkwrap":false,"devDependencies":{"apollo-server-integration-testsuite":"^3.13.0"},"peerDependencies":{"micro":"^9.3.4"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-micro_3.13.0_1699921026418_0.11164808891852251","host":"s3://npm-registry-packages"},"deprecated":"The `apollo-server-micro` 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."}},"time":{"created":"2017-07-17T23:31:12.764Z","modified":"2024-10-25T18:42:30.623Z","1.0.2":"2017-07-17T23:31:12.764Z","1.0.3-tracing.0":"2017-07-20T20:43:39.630Z","1.0.3-tracing.1":"2017-07-20T20:56:35.302Z","1.0.3-tracing.2":"2017-07-20T21:02:06.916Z","1.0.3-tracing.3":"2017-07-21T01:34:30.200Z","1.0.4":"2017-07-24T08:22:47.915Z","1.0.5":"2017-08-01T18:37:22.925Z","1.1.0":"2017-08-09T19:13:18.481Z","1.1.2":"2017-08-24T04:27:43.330Z","1.1.3":"2017-10-05T04:46:56.240Z","1.1.5":"2017-10-09T18:34:27.527Z","1.1.6":"2017-10-09T19:12:25.473Z","1.1.7":"2017-10-16T14:59:42.496Z","1.2.0-pre.1":"2017-10-24T03:55:12.986Z","1.2.0":"2017-10-24T16:15:04.631Z","1.3.0":"2017-12-12T08:46:04.918Z","1.3.1":"2017-12-18T06:35:03.851Z","1.3.2":"2017-12-19T16:03:07.857Z","1.3.3":"2018-03-26T14:20:58.883Z","1.3.4":"2018-03-28T20:57:36.276Z","1.3.5":"2018-04-18T13:10:27.032Z","1.3.6":"2018-04-24T18:35:40.874Z","2.0.0-beta.5":"2018-06-07T22:05:39.546Z","2.0.0-beta.6":"2018-06-11T22:54:32.878Z","2.0.0-beta.7":"2018-06-12T01:45:48.726Z","2.0.0-beta.8":"2018-06-13T00:55:27.338Z","2.0.0-beta.9":"2018-06-13T18:48:11.218Z","2.0.0-rc.7":"2018-07-10T02:34:08.732Z","1.4.0":"2018-07-13T18:55:27.187Z","2.0.0-rc.8":"2018-07-14T00:50:51.510Z","2.0.0-rc.9":"2018-07-17T17:47:42.356Z","2.0.0-rc.10":"2018-07-17T17:57:27.928Z","2.0.0":"2018-07-19T19:51:37.120Z","2.1.0-alpha.7":"2018-07-26T19:31:19.218Z","2.1.0-alpha.8":"2018-07-26T23:03:38.250Z","2.1.0-alpha.9":"2018-08-06T22:14:40.921Z","2.1.0-alpha.10":"2018-08-09T00:36:54.849Z","2.0.1":"2018-08-14T18:06:24.259Z","2.0.2":"2018-08-14T18:50:48.167Z","2.0.3":"2018-08-16T19:14:05.730Z","2.0.4":"2018-08-20T21:18:36.430Z","2.0.5":"2018-09-03T13:07:44.779Z","2.0.6":"2018-09-05T15:34:20.635Z","2.0.7":"2018-09-14T17:37:11.632Z","2.1.0":"2018-09-18T23:16:12.567Z","2.2.0-register.2195":"2018-10-09T01:50:32.478Z","2.2.0-alpha.0":"2018-10-10T19:32:02.478Z","2.2.0-alpha.1":"2018-10-26T18:29:26.015Z","2.2.0-alpha.2":"2018-11-05T19:46:52.535Z","2.2.0-alpha.3":"2018-11-06T05:38:05.109Z","2.2.0-alpha.4":"2018-11-06T19:34:09.156Z","2.2.0":"2018-11-07T16:18:28.473Z","2.2.1":"2018-11-12T13:27:02.459Z","2.2.2":"2018-11-13T13:59:35.450Z","2.2.3":"2018-11-26T18:59:07.622Z","2.2.4":"2018-11-28T13:51:50.743Z","2.2.5":"2018-11-29T11:46:06.592Z","2.2.6":"2018-12-04T11:35:52.499Z","2.2.7-alpha.0":"2018-12-04T11:44:45.524Z","2.3.0-alpha.0":"2018-12-04T19:13:18.734Z","2.2.7":"2018-12-13T13:03:03.881Z","2.3.0":"2018-12-13T13:30:34.155Z","2.3.1":"2018-12-13T19:08:00.989Z","2.4.0-alpha.0":"2018-12-18T15:14:46.185Z","2.4.0-alpha.1":"2019-01-16T11:12:02.269Z","2.4.0-alpha.2":"2019-01-23T13:04:47.327Z","2.3.2":"2019-01-25T16:48:56.058Z","2.3.3":"2019-01-29T09:51:55.893Z","2.4.0-alpha.4":"2019-02-07T11:01:51.498Z","2.4.0":"2019-02-07T12:09:10.805Z","2.4.1":"2019-02-12T21:35:10.390Z","2.4.2-rc.0":"2019-02-14T13:17:18.795Z","2.4.2":"2019-02-14T13:26:24.880Z","2.4.3":"2019-02-20T17:00:41.859Z","2.4.4":"2019-02-21T18:23:03.169Z","2.4.6":"2019-02-22T07:22:25.027Z","2.4.7":"2019-02-26T11:21:53.825Z","2.4.8":"2019-02-26T14:26:15.142Z","2.5.0-alpha.0":"2019-03-22T18:32:42.411Z","2.5.0-alpha.1":"2019-03-26T18:24:43.135Z","2.5.0-alpha.2":"2019-04-05T14:56:23.267Z","2.5.0-alpha.3":"2019-04-05T16:52:52.867Z","2.5.0-alpha.4":"2019-04-05T17:14:42.149Z","2.5.0-alpha.5":"2019-04-12T09:35:00.345Z","2.5.0-alpha.6":"2019-04-14T03:54:10.119Z","2.5.0-alpha.7":"2019-04-25T17:51:42.871Z","2.5.0-rc.0":"2019-04-30T12:05:01.188Z","2.5.0":"2019-05-07T12:44:13.212Z","2.5.1-alpha.14":"2019-05-10T02:04:40.493Z","2.5.1-alpha.15":"2019-05-10T02:35:53.925Z","2.6.0-alpha.0":"2019-05-13T19:23:21.263Z","2.6.0-alpha.1":"2019-05-22T18:34:49.654Z","2.6.0-alpha.2":"2019-05-22T20:09:09.310Z","2.6.0-alpha.3":"2019-05-22T20:13:36.341Z","2.6.0-alpha.4":"2019-05-23T17:21:53.919Z","2.6.0-alpha.5":"2019-05-23T19:39:58.009Z","2.6.0-alpha.6":"2019-05-24T21:22:33.246Z","2.6.0-alpha.7":"2019-05-27T18:28:00.871Z","2.6.0-alpha.8":"2019-05-28T15:26:28.778Z","2.5.1-alpha.0":"2019-05-30T09:03:00.731Z","2.5.1-alpha.1":"2019-05-30T10:57:28.451Z","2.5.1":"2019-05-30T13:18:36.274Z","2.6.0-alpha.9":"2019-05-30T19:55:24.909Z","2.6.0-rc.0":"2019-05-30T20:30:09.328Z","2.6.0":"2019-05-31T17:59:12.678Z","2.6.1-alpha.0":"2019-05-31T21:42:05.753Z","2.6.1":"2019-05-31T22:02:59.324Z","2.6.2-alpha.0":"2019-06-06T15:27:34.785Z","2.6.2":"2019-06-06T19:48:58.354Z","2.6.3":"2019-06-12T06:10:16.539Z","2.6.4":"2019-06-20T20:50:40.397Z","2.6.5-alpha.0":"2019-06-21T16:51:27.338Z","2.6.5":"2019-06-25T16:20:51.210Z","2.6.6":"2019-06-25T18:11:05.732Z","2.6.7-alpha.0":"2019-06-25T22:08:50.539Z","2.6.7":"2019-06-26T11:51:34.986Z","2.7.0-alpha.0":"2019-06-27T20:02:05.907Z","2.7.0-alpha.1":"2019-06-27T21:01:09.988Z","2.7.0-alpha.2":"2019-06-30T22:09:08.959Z","2.7.0-alpha.3":"2019-07-01T20:00:30.304Z","2.7.0-alpha.4":"2019-07-03T22:39:35.076Z","2.7.0-alpha.5":"2019-07-04T18:15:30.223Z","2.7.0-alpha.6":"2019-07-04T19:05:44.832Z","2.7.0-alpha.7":"2019-07-05T13:35:36.344Z","2.7.0-alpha.8":"2019-07-05T13:48:35.796Z","2.6.8":"2019-07-09T22:25:09.560Z","2.6.9":"2019-07-11T18:29:38.207Z","2.7.0-alpha.9":"2019-07-13T20:49:55.967Z","2.7.0-alpha.12":"2019-07-15T07:42:37.941Z","2.7.0-alpha.13":"2019-07-15T12:42:39.358Z","2.7.0-alpha.14":"2019-07-16T08:26:39.419Z","2.7.0":"2019-07-16T13:46:10.719Z","2.7.1":"2019-07-25T10:47:37.652Z","2.7.2":"2019-07-26T23:29:12.336Z","2.8.0":"2019-07-29T17:14:38.892Z","2.8.1":"2019-07-31T11:17:07.522Z","2.8.2":"2019-08-20T18:03:08.308Z","2.9.0":"2019-08-23T15:22:30.337Z","2.9.1":"2019-08-28T20:33:13.002Z","2.9.2":"2019-08-30T10:06:12.260Z","2.9.3":"2019-09-01T21:47:20.750Z","2.9.4":"2019-09-24T17:03:19.129Z","2.9.5":"2019-10-04T21:12:48.271Z","2.9.6":"2019-10-10T12:15:50.494Z","2.9.7":"2019-10-21T17:26:37.884Z","2.9.8":"2019-11-12T18:43:04.374Z","2.9.9":"2019-11-13T22:43:24.455Z","2.9.10":"2019-11-20T22:27:16.908Z","2.9.11":"2019-11-20T23:29:49.665Z","2.9.12":"2019-11-21T18:01:27.357Z","2.9.13":"2019-12-05T20:01:35.385Z","2.9.14":"2019-12-17T12:24:10.013Z","2.9.15":"2019-12-27T12:10:52.857Z","2.9.16":"2020-01-09T22:17:01.003Z","2.10.0":"2020-02-06T12:34:45.387Z","2.10.1":"2020-02-14T14:00:03.711Z","2.11.0-alpha.1":"2020-02-24T15:28:49.728Z","2.11.0-alpha.2":"2020-02-25T16:02:38.594Z","2.11.0-alpha.3":"2020-02-25T16:29:06.347Z","2.11.0":"2020-03-03T17:42:45.669Z","2.12.0-alpha.0":"2020-03-16T19:48:15.736Z","2.12.0-alpha.1":"2020-03-18T18:08:52.082Z","2.12.0-alpha.2":"2020-03-23T14:40:47.852Z","2.12.0-alpha.3":"2020-03-26T13:13:59.820Z","2.12.0-alpha.4":"2020-03-26T13:54:26.590Z","2.12.0-alpha.5":"2020-04-02T23:10:12.135Z","2.12.0":"2020-04-07T18:36:36.330Z","2.13.0-alpha.0":"2020-04-10T12:14:55.828Z","2.13.0-alpha.1":"2020-04-23T16:39:40.195Z","2.13.0":"2020-05-04T14:49:26.555Z","2.13.1-alpha.0":"2020-05-08T19:49:35.281Z","2.13.1-alpha.1":"2020-05-11T18:35:16.777Z","2.13.1":"2020-05-11T19:15:00.612Z","2.14.0-alpha.0":"2020-05-13T10:06:23.215Z","2.14.0-alpha.1":"2020-05-19T09:55:00.504Z","2.14.0-alpha.2":"2020-05-20T14:38:21.456Z","2.14.0":"2020-05-27T14:32:24.391Z","2.14.1":"2020-05-28T17:20:46.882Z","2.14.2":"2020-06-04T17:24:25.516Z","2.14.3":"2020-06-08T21:44:30.291Z","2.14.4":"2020-06-12T14:41:41.238Z","2.15.0-alpha.0":"2020-06-16T18:38:01.182Z","2.14.5":"2020-06-16T21:44:18.083Z","2.15.0-alpha.1":"2020-06-17T17:18:13.739Z","2.15.0":"2020-06-17T17:25:26.316Z","2.15.1":"2020-06-30T11:25:10.221Z","2.16.0":"2020-07-17T12:13:53.239Z","2.16.1":"2020-07-27T20:49:59.938Z","3.0.0-alpha.2":"2020-08-06T20:01:22.943Z","3.0.0-alpha.3":"2020-08-12T16:58:41.148Z","2.17.0":"2020-08-27T18:42:09.645Z","2.17.1-alpha.0":"2020-09-03T18:23:10.830Z","2.18.0-rc.0":"2020-09-18T22:17:13.105Z","2.18.0-rc.1":"2020-09-21T17:46:45.488Z","2.18.0":"2020-09-22T04:24:22.170Z","2.18.1":"2020-09-24T18:09:51.474Z","2.19.0-alpha.0":"2020-10-05T14:23:20.159Z","2.18.2":"2020-10-05T19:14:01.090Z","2.19.0-alpha.1":"2020-10-19T18:33:49.445Z","2.19.0":"2020-10-30T20:02:41.261Z","2.19.1":"2020-12-22T23:07:23.206Z","2.19.2":"2021-01-14T16:51:17.290Z","2.20.0-alpha.0":"2021-02-09T01:11:26.879Z","2.20.0":"2021-02-09T23:06:39.923Z","2.21.0-alpha.0":"2021-02-11T19:16:20.106Z","2.21.0-alpha.1":"2021-02-11T19:53:28.971Z","2.21.0-alpha.2":"2021-02-11T21:48:21.471Z","2.21.0":"2021-02-12T01:57:22.477Z","2.21.1-alpha.0":"2021-03-06T00:33:01.620Z","2.21.1":"2021-03-08T18:27:07.401Z","2.21.2-alpha.0":"2021-03-16T21:35:29.441Z","2.21.2":"2021-03-18T19:52:16.741Z","2.22.0-alpha.0":"2021-03-22T21:59:12.490Z","2.22.0":"2021-03-26T00:28:26.559Z","2.22.1":"2021-03-26T05:00:57.747Z","2.22.2-alpha.0":"2021-03-29T19:26:02.447Z","2.22.2":"2021-03-29T19:37:06.802Z","2.23.0-alpha.0":"2021-04-09T00:09:18.669Z","2.23.0-alpha.1":"2021-04-09T20:07:11.260Z","2.23.0":"2021-04-14T23:23:30.207Z","2.23.1-unified.0":"2021-04-22T22:22:37.662Z","2.23.1-unified.2":"2021-04-22T23:05:47.797Z","2.23.1-unified2.0":"2021-04-22T23:14:42.114Z","2.23.1-unified2.1":"2021-04-23T05:46:08.841Z","2.23.1-unified2.2":"2021-04-27T22:17:08.163Z","2.23.1-unified2.3":"2021-04-27T22:54:13.657Z","2.24.0-alpha.0":"2021-04-28T21:01:52.797Z","2.24.0-alpha.1":"2021-04-29T22:33:21.348Z","2.24.0-alpha.2":"2021-04-30T14:06:28.010Z","2.24.0":"2021-04-30T18:10:08.673Z","3.0.0-alpha.4":"2021-05-06T20:23:03.635Z","3.0.0-lambda.0":"2021-05-13T19:44:49.338Z","2.24.1":"2021-05-18T22:49:28.399Z","3.0.0-html.0":"2021-05-25T04:35:25.121Z","3.0.0-html.2":"2021-05-25T05:19:54.105Z","2.25.0-alpha.0":"2021-05-26T22:31:30.612Z","2.25.0-alpha.1":"2021-05-27T14:10:53.160Z","2.25.0":"2021-05-27T14:40:30.325Z","3.0.0-preview.0":"2021-06-01T05:55:55.038Z","2.25.1":"2021-06-08T21:06:14.935Z","3.0.0-preview.1":"2021-06-16T05:59:13.500Z","3.0.0-preview.2":"2021-06-16T06:15:38.380Z","2.25.2":"2021-06-22T19:54:00.640Z","3.0.0-preview.3":"2021-06-26T05:43:20.099Z","3.0.0-preview.4":"2021-06-30T21:06:04.202Z","3.0.0-rc.0":"2021-07-01T23:42:15.538Z","3.0.0-rc.1":"2021-07-02T21:48:37.713Z","3.0.0":"2021-07-07T18:17:52.933Z","3.0.1":"2021-07-16T22:45:05.200Z","3.0.2":"2021-07-20T17:28:06.139Z","3.1.0-alpha.0":"2021-07-22T20:23:15.860Z","3.1.0-alpha.1":"2021-07-23T06:14:32.669Z","3.1.0":"2021-07-26T19:11:04.176Z","3.1.1":"2021-07-26T19:51:29.680Z","3.1.2":"2021-08-03T00:34:04.891Z","3.2.0-alpha.0":"2021-08-20T23:55:54.258Z","3.2.0":"2021-08-23T23:50:40.977Z","3.3.0":"2021-08-25T23:14:44.174Z","3.4.0-alpha.0":"2021-10-09T00:38:21.925Z","3.4.0":"2021-10-11T20:58:35.559Z","2.25.3":"2021-11-04T18:04:28.078Z","3.4.1":"2021-11-04T18:06:38.489Z","3.5.0":"2021-11-05T17:54:39.446Z","3.6.0-alpha.0":"2021-12-17T21:57:58.845Z","3.6.0-alpha.1":"2021-12-28T03:11:12.970Z","3.6.0":"2021-12-30T18:25:53.482Z","3.6.1":"2021-12-31T15:57:47.210Z","3.6.2":"2022-01-18T21:10:11.715Z","3.6.3":"2022-02-08T19:15:28.916Z","3.6.4":"2022-03-10T18:51:02.599Z","3.6.5":"2022-03-21T19:14:25.661Z","3.6.6":"2022-03-24T20:20:38.415Z","3.6.7":"2022-03-29T23:54:24.273Z","3.6.8":"2022-05-05T15:52:45.135Z","3.7.0":"2022-05-05T16:51:41.001Z","3.8.0":"2022-05-23T23:58:49.201Z","3.8.1":"2022-05-24T04:11:59.889Z","2.25.4":"2022-05-25T17:28:41.356Z","3.8.2":"2022-06-04T00:56:11.687Z","3.9.0":"2022-06-15T16:55:04.770Z","3.10.0":"2022-07-11T19:23:02.565Z","3.10.1":"2022-08-10T17:09:47.330Z","2.26.0":"2022-08-18T18:20:49.576Z","3.10.2":"2022-08-26T02:41:40.425Z","3.10.3":"2022-10-07T22:17:55.033Z","2.26.1":"2022-10-20T18:01:57.711Z","3.10.4":"2022-10-31T21:52:18.033Z","3.11.0":"2022-11-02T15:56:35.464Z","3.11.1":"2022-11-03T01:01:34.080Z","3.12.0":"2023-03-02T19:33:33.689Z","2.26.2":"2023-08-30T21:02:53.074Z","3.12.1":"2023-08-30T21:17:15.606Z","3.13.0":"2023-11-14T00:17:06.615Z"},"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","homepage":"https://github.com/apollographql/apollo-server#readme","keywords":["GraphQL","Apollo","Micro","Server","Javascript","ZEIT"],"repository":{"url":"git+https://github.com/apollographql/apollo-server.git","type":"git","directory":"packages/apollo-server-micro"},"description":"Production-ready Node.js GraphQL server for Micro","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"readme":"[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)\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 [Micro](https://github.com/zeit/micro) integration for the Apollo community GraphQL Server. [Read the docs.](https://www.apollographql.com/docs/apollo-server/) [Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)\n\nA full example of how to use `apollo-server-micro` can be found in [the docs](https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-micro).\n\n## CORS Example\n\nThis example demonstrates how to setup a simple Micro + CORS + GraphQL\nmicroservice, using [`micro-cors`](https://github.com/possibilities/micro-cors):\n\n1) Package installation.\n\n```shell\nnpm install micro micro-cors apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst cors = require('micro-cors')(); // highlight-line\nconst { ApolloServer, gql } = require('apollo-server-micro');\nconst { send } = require('micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const handler = apolloServer.createHandler();\n  return cors((req, res) => req.method === 'OPTIONS' ? send(res, 200, 'ok') : handler(req, res))\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/graphql` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Custom GraphQL Path Example\n\nThis example shows how to setup a simple Micro + GraphQL microservice, that\nuses a custom GraphQL endpoint path:\n\n1) Package installation.\n\n```shell\nnpm install micro apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  return apolloServer.createHandler({ path: '/data' });  // highlight-line\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n\n## Fully Custom Routing Example\n\nThis example demonstrates how to setup a simple Micro + GraphQL microservice,\nthat uses [`micro-router`](https://github.com/pedronauck/micro-router) for\nfully custom routing:\n\n1) Package installation.\n\n```shell\nnpm install micro microrouter apollo-server-micro graphql\n```\n\n2) `index.js`\n\n```js{1,21-26}\nconst { router, get, post, options } = require('microrouter');\nconst { ApolloServer, gql } = require('apollo-server-micro');\n\nconst typeDefs = gql`\n  type Query {\n    sayHello: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    sayHello(parent, args, context) {\n      return 'Hello World!';\n    },\n  },\n};\n\nconst apolloServer = new ApolloServer({ typeDefs, resolvers });\nmodule.exports = apolloServer.start().then(() => {\n  const graphqlPath = '/data';\n  const graphqlHandler = apolloServer.createHandler({ path: graphqlPath });\n  return router(\n    get('/', (req, res) => 'Welcome!'),\n    post(graphqlPath, graphqlHandler),\n    get(graphqlPath, graphqlHandler),\n  );\n});\n```\n\n3) `package.json`\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"micro\"\n  }\n}\n```\n\n4) After an `npm start`, access `http://localhost:3000/data` in your\nbrowser to run queries using\n[`graphql-playground`](https://github.com/prismagraphql/graphql-playground),\nor send GraphQL requests directly to the same URL.\n","readmeFilename":"README.md","users":{"allain":true,"rodrigosdo":true}}