{"_id":"postgraphile-apollo-server","_rev":"3-343d25dce2dc615001741d6ff93feffc","name":"postgraphile-apollo-server","dist-tags":{"latest":"0.1.1","next":"0.1.1-0"},"versions":{"0.1.0":{"name":"postgraphile-apollo-server","version":"0.1.0","description":"Helper for using PostGraphile with Apollo Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/graphile/postgraphile-apollo-server.git"},"keywords":["postgraphile","graphile","apollo-server","apollo","server","graphql"],"author":{"name":"Benjie Gillam","email":"code@benjiegillam.com"},"license":"MIT","bugs":{"url":"https://github.com/graphile/postgraphile-apollo-server/issues"},"peerDependencies":{"postgraphile":"4.x"},"homepage":"https://github.com/graphile/postgraphile-apollo-server#readme","gitHead":"d94ae7d8b05d50532f68f6a67618867ec8607897","_id":"postgraphile-apollo-server@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"benjie","email":"npm@benjiegillam.com"},"dist":{"integrity":"sha512-Izyd/87A1H/zZEkofqCglgssdxkKFOtJsskxcI381uAqXqYtCIQdzW6r9uxIdFhlqU++7sVXwB9JdIZPonFT6A==","shasum":"a2c08a2880e80d5d5205d0bb956b8f2ab6bd7aaa","tarball":"https://registry.npmjs.org/postgraphile-apollo-server/-/postgraphile-apollo-server-0.1.0.tgz","fileCount":3,"unpackedSize":7639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4v30CRA9TVsSAnZWagAA2qUP/0jLMwZnBRtm0ymRdi7o\nGq8Rlw6wJ3YpXf8kF6CvPjDc/56UlpTPV5DZlmlIj9axeMEAXj6PYderOqv8\nop8wUGVD9HuJX7aDTzHpWzmTAechHK3vqzWLVM1Ss32uHfEd3V2y1toxrTQg\nMMHgfJeMg9B6PQ1vBwR4z/QElEW6CbHme6xkkw3itEzKgMY8FMrpDl6081mn\nHZvlZC2C27Ow6M+CRCrrIaOse5CgE8HMElvdsYypjxMuiLJ/09YtItYIYoPB\nyh/LFYMq18xrzKYo+Uhz7Z6AFhnHsZH6AsqsIaoSfXSYTaBb1cfc3a7Mg77y\nFrgNtb8H+1iF9Lba+Eiekdx369vlYEkShxTAfJSovvqGBnie4tGpvDUJ9zeg\n5aHfjDg7C6OM9RiZFJSOOOaDDcWU7vebYFnVTl7HhuiB5VsK9NNyf0os+hB8\npc373BbvyDWtypOa0VYwpBk59TOsTV9a453cVX696yE38IoB1gQl9A0yn1Ij\nES7drlyHYmNlnt+a4SyS/Ippi5ar50EEkM79Dk01kWroz4S8tzumDQUouVTK\nzedIE88sOUOPysqgZXR9D2An9ldOXgDJhYmH8TxyFPHI6P77cpRquXXjga6w\nOeelBOyhMXhQeBmLUOJFVZnxjiVqxEwZou7mDfiKFzBRXxqxsTa7NGicgv9+\nxeCh\r\n=0S6U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSmLJaFB7WVoV+a6G12sau55Qms/QQ6AYv1YnZ1GfNJgIgEkapfUuD+Sx3TAMcKYuMUHCMIWRx/ehQdLwCG4ooRKg="}]},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgraphile-apollo-server_0.1.0_1541602803635_0.9926791443041152"},"_hasShrinkwrap":false},"0.1.1-0":{"name":"postgraphile-apollo-server","version":"0.1.1-0","description":"Helper for using PostGraphile with Apollo Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/graphile/postgraphile-apollo-server.git"},"keywords":["postgraphile","graphile","apollo-server","apollo","server","graphql"],"author":{"name":"Benjie Gillam","email":"code@benjiegillam.com"},"license":"MIT","bugs":{"url":"https://github.com/graphile/postgraphile-apollo-server/issues"},"peerDependencies":{"postgraphile":"4.x"},"homepage":"https://github.com/graphile/postgraphile-apollo-server#readme","readme":"# postgraphile-apollo-server\n\nThis module performs some of the boilerplate for using PostGraphile with Apollo\nServer.\n\n## Usage\n\n```js\nconst pg = require(\"pg\");\nconst { ApolloServer } = require(\"apollo-server\");\nconst { makeSchemaAndPlugin } = require(\"postgraphile-apollo-server\");\n\nconst pgPool = new pg.Pool({\n  connectionString: process.env.DATABASE_URL\n});\n\nasync function main() {\n  const { schema, plugin } = await makeSchemaAndPlugin(\n    pgPool,\n    'public', // PostgreSQL schema to use\n    {\n      // PostGraphile options, see:\n      // https://www.graphile.org/postgraphile/usage-library/\n    }\n  );\n\n  const server = new ApolloServer({\n    schema,\n    plugins: [plugin]\n  });\n\n  const { url } = await server.listen();\n  console.log(`🚀 Server ready at ${url}`);\n}\n\nmain().catch(e => {\n  console.error(e);\n  process.exit(1);\n});\n```\n\n## Limitations\n\nNot all PostGraphile library options are supported at this time; for example\n`watchPg` is not.\n\n## Example\n\nhttps://github.com/graphile/postgraphile-example-apollo-server\n\n## TODO:\n\n- [ ] Improve this README!\n- [ ] Compile a list of the unsupported PostGraphile library options\n- [ ] Don't require a `pgPool` to be passed - allow a connection string instead\n- [ ] Add tests\n","readmeFilename":"README.md","gitHead":"7d72359a6b687e22cfb0b0fbaecdb867cb288d1e","_id":"postgraphile-apollo-server@0.1.1-0","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-qNaCG9N85ddLxGM/Ks+nhcKzKnJo/xYrPFNiyCNFC82F05LqpH2nG4VlXEcX76oQ/YKj6fMSSWcXe1MRfAZvPw==","shasum":"bae2b994b4dbf764f92555c080b71830933eb84e","tarball":"https://registry.npmjs.org/postgraphile-apollo-server/-/postgraphile-apollo-server-0.1.1-0.tgz","fileCount":3,"unpackedSize":7658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwBFaCRA9TVsSAnZWagAAWj4QAJ4+omVqJUziGkH/zOLg\nexE3bwFPsMKBwEtSW5056Fskxq0+feHFpaXB3iUtr10++wSuknovmOmShsgn\n4arw6j6NcGiTqtfH40Jg88nMFRxnqZE1FmpjDXOFd5PW6nsuale1C8GFrjRC\nf755PgwYhWtaMXaW4ZXby9uJml7Q2AJ7eR8iOf6QzarhvC9hMcTY/c3oMPzE\nH7ZkEAEhL1tLuoS3D0iudDrC5BofHrPF2LY1rjgBJD5pANGoGYrHBT5WuHiK\nyPi+ds+GUioIrbXh8NheyWaOjwtMkUnhWCmpXIv2CZKFqVRVi4kXZZUdJEM/\nDFzu5WyIOQpoVzdDhIjzcl0AfPZ/bM+DcGwtbRze+Kq2sP4zuU4NrbGlzZnM\nKmx+fBucnVmMlagiyXF9K/hzo5RjOcv6mEbq3yHzUdxD9+Nso4NEy4vxt2Nx\noJP/cJM64xVOFntvnuoL/CSHHaV+bEtG6J/kzPElF1cqk04y0YanpLiTHwoL\nQcKemBIPReaOe2/ZZsxDNG31WE2Z3qFhJhOUXXw4rZOyXJyABsHWweS30tD8\n762t3hdTA55otPY0fG0u4/G9vrvBtyXbDaGXKgj/fwFo2Fqj0kKwseSpt7hz\nGY8lLbwoCQVhIxWuq7wI+zI15sfY9Qg4wAtd7HLX6PL08G4lYMzMl/Vv6vkG\nAPeE\r\n=YnoI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtT3t5aI/LjpbwwYDtZb+anT+NqAsRg4OrMI597jAUWwIhAKjCuLbd2DIfqwcoIGgixQvs92gOso5vJMFShUA9LtzK"}]},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"_npmUser":{"name":"benjie","email":"npm@benjiegillam.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgraphile-apollo-server_0.1.1-0_1556091224995_0.20268491368573804"},"_hasShrinkwrap":false},"0.1.1":{"name":"postgraphile-apollo-server","version":"0.1.1","description":"Helper for using PostGraphile with Apollo Server","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/graphile/postgraphile-apollo-server.git"},"keywords":["postgraphile","graphile","apollo-server","apollo","server","graphql"],"author":{"name":"Benjie Gillam","email":"code@benjiegillam.com"},"license":"MIT","bugs":{"url":"https://github.com/graphile/postgraphile-apollo-server/issues"},"peerDependencies":{"postgraphile":"4.x"},"homepage":"https://github.com/graphile/postgraphile-apollo-server#readme","gitHead":"c205a8daebddf16978629b800c44935e527afc50","_id":"postgraphile-apollo-server@0.1.1","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-3hZrh9aaJ81wIfj1sGbuIfnR3rE9WWQsv8OrHvYg7/MAkDAvtthHkAZvoQHWT320g/rF4cqDVTkHVFhID3ZN0g==","shasum":"27b19c91d23cc7f5ae56a0314783ddbe17badaa2","tarball":"https://registry.npmjs.org/postgraphile-apollo-server/-/postgraphile-apollo-server-0.1.1.tgz","fileCount":3,"unpackedSize":7783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwBMFCRA9TVsSAnZWagAAm3gQAJH4LscdKO1J8JYzXFJ7\nm5uSTwC6O0/beEKx36YTIq6nRAR2SDuVLO5HJboD4U8Dl1CsoX/OWr7x0jxQ\n7G24nDarMX1BDiIfiJDMWAhAo4xXK7sknLPdGx6JqkD6am4iuIH/TURQG/k5\n60AqFb3xem1/h1HvM4qhqMWYTVrgiLUPRdImkK7xYZU3UiXLQdcw0Rm2VMbD\nc/HCUK9y6qT3vrD47sIEujX+cbIAq7LWeAzqfpXPt3yHzjlAX1zmX7eCKRPi\nu0Ct6jj3fqptC5dc7nFmyuHHKXVLkT1rA409zT4JDYd9SYQ68xHeFq/ey8Qe\n8GpD9vnuo5e5vetU8FzhLa8JfxWEH7+ZYYFLT6rKG70MBUHTT2P3LlWRV6uL\nIxAx3q6s4h69G7aRnTsBqFZZcKDqjl0Zv4+zIsHg/+6l1wP/r2wEQUKqKnQx\nAh16fqHFNpOSIWy/Pkc17hxQYGiU3BchfJbtgoQqRe7F7TDEuMhuVX3xmdx4\ncsXaMtpZIBDeT8P3oarC6CYxqhmDGpmWYLlYGxG4DKdfoRsJd2FPh1DjZGWW\nfXQGKoDfnT+TLEB5hshRlW4VSamrUjKm+4NxoxXu1ew7QvV1lADc/VRCEjal\nmZjar+Xh3j7xbuEytDcbNjn4G3NdGielHFwLRsHuRw6BdPFfcCaiz+0rovke\nGVdh\r\n=142o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID+0+C7kAQMcJTzpMEsia7ecVugOvmryr1YUX6z+MWQRAiBOoFBVHSk/R/1kHPiHaBUIkTAU6o3T1Lix7hfBWvS91g=="}]},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"_npmUser":{"name":"benjie","email":"npm@benjiegillam.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgraphile-apollo-server_0.1.1_1556091652631_0.667282113080834"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-07T15:00:03.635Z","0.1.0":"2018-11-07T15:00:03.746Z","modified":"2022-05-13T06:58:49.751Z","0.1.1-0":"2019-04-24T07:33:45.162Z","0.1.1":"2019-04-24T07:40:52.760Z"},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"description":"Helper for using PostGraphile with Apollo Server","homepage":"https://github.com/graphile/postgraphile-apollo-server#readme","keywords":["postgraphile","graphile","apollo-server","apollo","server","graphql"],"repository":{"type":"git","url":"git+https://github.com/graphile/postgraphile-apollo-server.git"},"author":{"name":"Benjie Gillam","email":"code@benjiegillam.com"},"bugs":{"url":"https://github.com/graphile/postgraphile-apollo-server/issues"},"license":"MIT","readme":"# postgraphile-apollo-server\n\nThis module performs some of the boilerplate for using PostGraphile with Apollo\nServer.\n\n## Usage\n\n```js\nconst pg = require(\"pg\");\nconst { ApolloServer } = require(\"apollo-server\");\nconst { makeSchemaAndPlugin } = require(\"postgraphile-apollo-server\");\n\nconst pgPool = new pg.Pool({\n  connectionString: process.env.DATABASE_URL\n});\n\nasync function main() {\n  const { schema, plugin } = await makeSchemaAndPlugin(\n    pgPool,\n    'public', // PostgreSQL schema to use\n    {\n      // PostGraphile options, see:\n      // https://www.graphile.org/postgraphile/usage-library/\n    }\n  );\n\n  const server = new ApolloServer({\n    schema,\n    plugins: [plugin]\n  });\n\n  const { url } = await server.listen();\n  console.log(`🚀 Server ready at ${url}`);\n}\n\nmain().catch(e => {\n  console.error(e);\n  process.exit(1);\n});\n```\n\n## Limitations\n\nNot all PostGraphile library options are supported at this time; for example\n`watchPg` is not.\n\n## Example\n\nhttps://github.com/graphile/postgraphile-example-apollo-server\n\n## Changelog\n\n- v0.1.0 - initial release\n- v0.1.1 - fix headers after Apollo Server breaking change (thanks @miguelocarvajal)\n\n## TODO:\n\n- [ ] Improve this README!\n- [ ] Compile a list of the unsupported PostGraphile library options\n- [ ] Don't require a `pgPool` to be passed - allow a connection string instead\n- [ ] Add tests\n","readmeFilename":"README.md"}