{"name":"graphql-serve","version":"0.4.0","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"clean":"rm -rf dist/ node_modules/","build":"tsc","test":"ava","lint":"eslint --ext js,ts .","pretty":"prettier --check '**/*'","prettify":"prettier --write '**/*'","print-schema":"ts-node bin/printSchema.ts"},"devDependencies":{"@types/express":"4.17.2","@types/node":"12.12.25","@types/pino":"5.15.3","@types/yargs":"^15.0.2","@typescript-eslint/eslint-plugin":"2.17.0","@typescript-eslint/parser":"2.17.0","ava":"3.0.0","babel-eslint":"10.0.3","eslint":"6.8.0","eslint-config-prettier":"6.9.0","graphql-request":"1.8.2","prettier":"1.19.1","ts-node":"8.6.2","typescript":"3.7.5"},"dependencies":{"@graphback/codegen-client":"0.10.2","@graphback/codegen-schema":"0.10.2","@graphback/core":"0.10.2","@graphback/runtime":"0.10.2","apollo-server-express":"2.9.16","axios":"0.19.2","express":"4.17.1","get-port":"5.1.1","graphql":"14.5.8","graphql-migrations":"0.10.2","graphql-tag":"2.10.1","knex":"0.20.7","knex-cleaner":"1.3.0","sqlite3":"4.1.1","yargs":"^15.1.0"},"bin":{"graphql-serve":"./dist/bin/serve.js","print-schema":"./dist/bin/printSchema.js"},"gitHead":"e88c9eec45e4136801d51ff211868226a92f5e65","description":"graphql-testx is a full-featured GraphQL server, based on [Graphback](https://graphback.dev/) and [Apollo Server](https://www.apollographql.com/docs/apollo-server/). With the minimum configuration required, you have a server ready for testing GraphQL clie","_id":"graphql-serve@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"wtrocki","email":"wtrocki@redhat.com"},"dist":{"integrity":"sha512-mZ275spU1sDHo1MM2f+FkinaSsYP372QhzumPqvG/mYovnPlE7cBxhP1TQjEwh8anXTYDY7978VQQFV77sgwIg==","shasum":"abd1f58876890615b8a426ce10dec3de8472682a","tarball":"http://registry-npm.ywwl.com/graphql-serve/download/graphql-serve-0.4.0.tgz","fileCount":49,"unpackedSize":323712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMCaeCRA9TVsSAnZWagAA4ogQAJgAS/EGjJ7s/xyLNYZe\nsomKiG3S5YexaMCRSP8zs+TvIiHMSOTTUWW3nmLXznwVs4w4xD4aaY+gNmmL\ncQvI1X/9ibrvnCpCzaTozynnncJmzAcac7bsmVFJN4QkheXDM2HvxiIk1/ep\n0rgO7cpNhDEeGuu3+NyCDAjfZzwq5EoVNaqURAkCz1ZZHSUPsqR1quW8lUwA\nlbD1xXjikBPGx/zQS0rO+LZuClylVTj4c0PWv/1v01INXLIo4t5igT1Iyc3W\ny+ypGkQ1hNYio4PQSclkPUNEoaUZUAYVQifZzFU//jcdf29996V+iDJzN+rt\nrZkdbJSl6DqH4ieFOJ6Jm5A1KEFmev/mZpZOcd+nIu/66+p3DD9uNSvkmxXl\ncR1+lAQ+muP2jI8Jhxgf/Y75uJTeja7CunT/jcARrm7YR+pKSvdHqFnd9VgY\nFvZGw89z0f4nFePx7EBDw1xU84E2Rz46wAAzwRpINBnYtUV/y567wK3taE0X\nhHfMnc5B8NMTkuMF5p4sn6e61BNx4tPL0p7rlkGKfgF5ks3BxJjCC/OAfgr+\n0JBNcGhFpgofN4AB0bZgu1f8Wx7bv3HqN8hJR9YhWmVCtfrgs4yWoDea6Dil\nhwrQSZVgXbVU99jKZE7eBclDqUU1h/Xaew2FLV6xR+vQfJKc3+C9FK30vniL\n89Ua\r\n=LTnS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBR64yd+At2LS24RJl6ZyL2zPx8HkmotpUYZ74/U8GYkAiEAqHHizz0sgCybILWfNUtvJj7O5HBIXjWIWeJlF9RhOBE="}],"size":116166,"noattachment":false,"key":"/graphql-serve/-/graphql-serve-0.4.0.tgz"},"maintainers":[{"name":"wtrocki","email":"wtrocki@redhat.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-serve_0.4.0_1580213917837_0.07896408365257734"},"_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":1580213918089,"_cnpm_publish_time":1580213918089,"dist-tags":{"latest":"1.1.2","next":"1.1.0-alpha2"}}