{"name":"graphql-serve","version":"0.11.3","main":"dist/src/index.js","types":"dist/src/index.d.ts","bin":{"gqls":"dist/index.js"},"scripts":{"clean":"rm -rf dist/ node_modules/","build":"tsc","watch":"tsc -w","test":"jest","lint":"eslint --ext js,ts .","print-schema":"ts-node bin/printSchema.ts"},"devDependencies":{"@types/express":"4.17.3","@types/jest":"25.1.4","@types/node":"12.12.31","@types/pino":"5.17.0","@typescript-eslint/eslint-plugin":"2.25.0","@typescript-eslint/parser":"2.25.0","babel-eslint":"10.1.0","eslint":"6.8.0","eslint-config-prettier":"6.10.1","graphql-request":"1.8.2","jest":"25.2.3","ts-jest":"25.2.1","ts-node":"8.8.1","typescript":"3.8.3"},"dependencies":{"@graphback/codegen-client":"0.11.3","@graphback/codegen-schema":"0.11.3","@graphback/core":"0.11.3","@graphback/runtime":"0.11.3","@graphback/runtime-knex":"0.11.3","@graphback/runtime-mongo":"0.11.3","apollo-server-express":"2.11.0","cors":"2.8.5","express":"4.17.1","get-port":"5.1.1","glob":"7.1.6","graphback":"0.11.3","graphql":"14.6.0","graphql-config":"3.0.0-alpha.23","graphql-migrations":"0.11.3","graphql-subscriptions":"1.1.0","graphql-tag":"2.10.3","knex":"0.20.13","knex-cleaner":"1.3.0","mongodb":"3.5.5","mongodb-memory-server":"6.5.0","sqlite3":"4.1.1","yargs":"15.3.1"},"description":"<p align=\"center\">   <img width=\"400\" src=\"https://github.com/aerogear/graphback/raw/master/website/static/img/graphback.png\">   <br/>   Auto generate database structure, <br/>   GraphQL Resolvers and Queries from GraphQL types 🚀 </p>","_id":"graphql-serve@0.11.3","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-4hVJp+wRLNIYBEdjF/QipUlzU/f8ddJuj5gLPwSljA0WqNJIhv429IpXw7k3lbu2FlnQfYzratbgpmzL+AG2RA==","shasum":"78eabcb1646adf4ec8e1902193ffcde5cd0ef507","tarball":"http://registry-npm.ywwl.com/graphql-serve/download/graphql-serve-0.11.3.tgz","fileCount":47,"unpackedSize":47154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefdTkCRA9TVsSAnZWagAAlXUP/ROje8ahEXsipOtZnmeW\n+IgfrNrZPmtN7C39RnkjFUyz1t+5I3LTAeXoTOat1PUuZ0OaRx1axuhN2cZA\nAeH8lsbqxmcMR4Z4RqnVonuXKq/P2TpDlgcrlEV5suNv9QR1mZwBoZdVv8IS\nM476GrP4Wy37qWYEZKLwSNeKp5bQ6+wWUcCHpFTsaXTLDMxKYgxrPaxKCaKd\no2nYk8ycWBdvSlNKNsYTim2oFXwI4TQS5DJJWHxlUA7g43ZgzpfxX591M/9p\nEFoWzVWdUjLVerPffsY8JBFWsMiO8UXSR9WNg3Q9nDfU9gfpmCaSs3sbArul\nsytfBXgSqUkrGbrKoaYxzf0PVBt9nPVXdwyXCSp7CZNsukJ8ptj0FSr6u8SB\n6YSi7ykExBn+Ns59nCvdwQuENGsCaFw9ZREuurvpBj6q782eQu+ZuvteBDjx\ny8/BEoYTqBErD7d2NukD25ZVnxRtvq35THVwJkEknEHlDf05uj5IqHcNvV38\nRLm3+WZaImH6D5yTvZGPZqCL1cVkMpx428wk/5KCc+qwdMmelLhUackXOFDX\ntH5+o+WHNSYwHUOA4uFnJV3Rcs7BNizIot92R01307PUwgYx6vh7oawDCEoe\nVGHW4vwPUAIkgw/7HrxMFigeqFI+fIOb1Ryr2RAX5pq1/zg+2t44VXaYgt4d\nVpZj\r\n=MNiS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDypin+LgM+QkJvTulU7a33HBXzkaaVwyS+40xABAW7twIgJdhhfZN+YuQ1yJ7W8y7hFysgqAWgzVlG+CttwrJYaKg="}],"size":13151,"noattachment":false,"key":"/graphql-serve/-/graphql-serve-0.11.3.tgz"},"maintainers":[{"name":"wtrocki","email":"wtrocki@redhat.com"}],"_npmUser":{"name":"aerogear-ci","email":"dara.s.hayes@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-serve_0.11.3_1585304803846_0.7838489318164932"},"_hasShrinkwrap":false,"readme":"## Graphback\n\n<p align=\"center\">\n  <img width=\"400\" src=\"https://raw.githubusercontent.com/aerogear/graphback/master/website/static/img/logo.png\"/>\n  <br/>\n  Auto generate database structure, <br/>\n  GraphQL Resolvers and Queries from GraphQL types 🚀\n</p>\n\n**Documentation**: https://graphback.dev\n**Repository**: https://github.com/aerogear/graphback/\n\n# graphql-serve\n\nFully functional GraphQL Server based on Graphback CRUD Specification\n\ngraphql-serve is a full-featured GraphQL server, based on\n[Graphback](https://graphback.dev/) and\n[Apollo Server](https://www.apollographql.com/docs/apollo-server/). With the\nminimum configuration required, you have a server ready for testing GraphQL\nclient applications or libraries. Unlike mocking alternatives, graphql-serve\noffers persistent data between queries and mutation using in-memory SQLite\ndatabase.\n\n\n\n## Getting Started\n\n### Installation\n\nUsing npm:\n\n```bash\nnpm install -g graphql-serve\n```\n\nor yarn:\n\n```bash\nyarn global add graphql-serve\n```\n\n### Usage\n\n\n#### gqlserve\n\nThe gqlserve command only needs one or more `*.graphql` data model file(s) in order to setup a working GraphQL server. Here is an example model file:\n\n```graphql\n\"\"\" @model \"\"\"\ntype Note {\n  id: ID!\n  title: String!\n  description: String\n  likes: Int\n}\n```\n\n\nAssuming you have created your various `*.graphql` data model files in the `models` directory, to automatically generate resolvers and start a GraphQL server listening on port 8080 do the following:\n\n```bash\n$ gqlserve serve models --port=8080\n```\n\n\nIf you only need to see the generated GraphQL Schema, use the `print-schema` command:\n\n```bash\n$ gqlserve print-schema .\n```\nThe above command prints schema generated from data model files in the current directory.\n\nThis information is also provided with the command itself:\n```bash\n$ gqlserve -h\ngqlserve <command>\n\nCommands:\n  gqlserve print-schema [modelDir]     Generate and print GraphQL schema from data\n                                   model files\n  gqlserve serve [modelDir] [options]  Generate and start GraphQL server from data\n                                   model files\n\nOptions:\n  -h, --help     Show help                                             [boolean]\n  -v, --version  Show version number                                   [boolean]\n```\nFor the `serve` command:\n```bash\n$ gqlserve serve -h\ngqlserve serve [modelDir] [options]\n\nGenerate and start GraphQL server from data model files\n\nPositionals:\n  modelDir, model  Directory to search for data models                  [string]\n\nOptions:\n  --port, -p        Specify the port on which to listen on              [number]\n  --datasync, --ds  Enable datasynchronization features                [boolean]\n  -h, --help        Show help                                          [boolean]\n  -v, --version     Show version number                                [boolean]\n\nExamples:\n  gqlserve serve . -p 8080  generate schema from data model files in current\n                            directory and start GraphQL server on port 8080\n```\n\nAlso for `print-schema` command:\n```bash\n$ gqlserve print-schema -h\ngqlserve print-schema [modelDir]\n\nGenerate and print GraphQL schema from data model files\n\nPositionals:\n  modelDir, model  Directory to search for data models                  [string]\n\nOptions:\n  -h, --help     Show help                                             [boolean]\n  -v, --version  Show version number                                   [boolean]\n\nExamples:\n  gqlserve print-schema modelDir  only display generated schema from data model\n                              files in modelDir directory and quit\n```\n\nUnder to hood we use Graphback to parse the Type Definitions/Data Model and\ngenerate the GraphQL schema and resolvers. See the\n[Graphback Docs on Data Model Definition](https://graphback.dev/docs/datamodel) and \n[Data Synchronization](https://graphback.dev/docs/next/datasync/datasync-intro) for data synchronization\nfeatures.\n\n\n## Extension to GraphQL TestX\n\nGraphQL serve is based on GraphQL-TestX:\nhttps://github.com/aerogear/graphql-testx\n","publish_time":1585304803972,"_cnpm_publish_time":1585304803972,"dist-tags":{"latest":"1.1.2","next":"1.1.0-alpha2"}}