{"name":"graphql-serve","version":"0.14.0-alpha13","main":"dist/src/index.js","types":"dist/src/index.d.ts","license":"Apache 2.0","typescript":{"definition":"types/index.d.ts"},"bin":{"gqls":"dist/index.js"},"scripts":{"clean":"rimraf coverage dist types","build":"tsc","watch":"tsc -w","test":"jest","lint":"eslint --ext js,ts .","print-schema":"ts-node bin/printSchema.ts"},"devDependencies":{"@types/chalk":"2.2.0","@types/express":"4.17.6","@types/jest":"26.0.3","@types/node":"12.12.47","@types/pino":"6.3.0","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","babel-eslint":"10.1.0","eslint":"7.3.1","eslint-config-prettier":"6.11.0","graphql-request":"2.0.0","jest":"26.1.0","rimraf":"3.0.2","ts-jest":"26.1.1","ts-node":"8.10.2","typescript":"3.9.5"},"dependencies":{"@graphback/codegen-client":"0.14.0-alpha13","@graphback/codegen-schema":"0.14.0-alpha13","@graphback/core":"0.14.0-alpha13","@graphback/datasync":"0.14.0-alpha13","@graphback/runtime-knex":"0.14.0-alpha13","@graphback/runtime-mongo":"0.14.0-alpha13","@graphql-tools/graphql-file-loader":"6.0.10","@graphql-tools/load":"6.0.10","apollo-server-express":"2.15.0","chalk":"4.1.0","cors":"2.8.5","express":"4.17.1","get-port":"5.1.1","glob":"7.1.6","graphback":"0.14.0-alpha13","graphql":"15.2.0","graphql-migrations":"0.14.0-alpha13","graphql-subscriptions":"1.1.0","graphql-tag":"2.10.3","knex":"0.21.1","knex-cleaner":"1.3.0","mongodb":"3.5.9","mongodb-memory-server":"6.6.1","sqlite3":"4.2.0","yargs":"15.3.1"},"peerDependencies":{"graphql":"^14.0.0 || ^15.0.0"},"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```\nnpm install -g graphql-serve\n```\n\nor yarn:\n\n```\nyarn 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```\n$ gqls serve models --port=8080\n```\n\n\nIf you only need to see the generated GraphQL Schema, use the `print-schema` command:\n\n```\n$ gqls 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```\n$ gqls -h\ngqls <command>\n\nCommands:\n  gqls print-schema [modelDir]     Generate and print GraphQL schema from data\n                                   model files\n  gqls 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```\n$ gqls serve -h\ngqls 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  -h, --help     Show help                                             [boolean]\n  -v, --version  Show version number                                   [boolean]\n\nExamples:\n  gqls 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```\n$ gqls print-schema -h\ngqls 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  gqls 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)\n\n\n## Extension to GraphQL TestX\n\nGraphQL serve is based on GraphQL-TestX:\nhttps://github.com/aerogear/graphql-testx\n","readmeFilename":"README.md","description":"<p align=\"center\">   <img width=\"400\" src=\"https://raw.githubusercontent.com/aerogear/graphback/master/website/static/img/logo.png\">   <br/>   Auto generate database structure, <br/>   GraphQL Resolvers and Queries from GraphQL types 🚀 </p>","_id":"graphql-serve@0.14.0-alpha13","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-EMJn7GYL34imRVQiPyjAmD7sHZaLDHWFJo28NwGxaUJu2E/JuG2vbCXNxoU0+MGOE+Uk6OvzeVqN6q8vAMcUFQ==","shasum":"ac3b502eeaca0fbebbac2831c4bc3ed43a0a94a8","tarball":"http://registry-npm.ywwl.com/graphql-serve/download/graphql-serve-0.14.0-alpha13.tgz","fileCount":45,"unpackedSize":42515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+gYcCRA9TVsSAnZWagAAxGEQAKKc8Dptz9vYo28Nysa/\n2K5vojUJJOGVmoW2x0jGfhOZrz8Wgx6tZqQ4wQT0tSk95lwMomlAYgZ9TRYF\nWufcebzIc1Nl3u33XeMtHx5nwbuF1osz3wSNeHBepiEqYLKZdjWZBIEa6Dg4\nTwQpBuONs1rgiUPCszH1wIKOrI1CTCinyeugP3mahUMmYO7NQFeuB/mp/anO\neg91xdwgr1xeC2PcyEnSCRm18dCOJsfWRurRTysJJFDs9uNTNCMx/YUxAJF3\nnZZ5SShtB3Uqb4Ux15OKkIlehwzdDgRBa0bYZcaFiHD4bSAe/zgDn7OOE9MW\nGOLzT45TORAS0+cXbT4Xel8Y6VJNJaALHmaJgRoZgjYQDRpml+YcfNcZTQHO\nv0NZerMD3Ckn+MJ+kxIcLOkBKZ5yNYzXkhZULO8Ut6sLJwg8U8jKUvEbEA2r\nXfoTnFd+vYv8ig55oCB7634TmxO+IGWBS3BqTohVOJZkfAKLfl0iqWAr8HT0\n0PkBahI7L8IgwnQQx3BolovI9AtVgn6zCZ98KcGIlpkegNLAdXMeREARYc2W\n9ucwYAkhTHfRjb8AcJSZHwTUYhqtVdtv7yqoYNObU5xUEwb3CNIqurlVJ9hs\nL3JhzUE8OAr2HIGMvCjXxKvvoIxvSbZN570T9goJG9NRc8RzCjrsbark4s3a\nslP7\r\n=Myvi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7h8VpBOGb1jWDZ/bVwMTd+IKLSWRRQOZcMV+Gye6dtQIhALdYMh+5+7KXK3o1BrjQ3jdWY7UuuhiRkCvZ1iDKCDRA"}],"size":12831,"noattachment":false,"key":"/graphql-serve/-/graphql-serve-0.14.0-alpha13.tgz"},"maintainers":[{"name":"wtrocki","email":"wtrocki@redhat.com"}],"_npmUser":{"name":"aerogear-ci","email":"mziccard@redhat.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-serve_0.14.0-alpha13_1593443868365_0.1962534039439474"},"_hasShrinkwrap":false,"publish_time":1593443868481,"_cnpm_publish_time":1593443868481,"dist-tags":{"latest":"1.1.2","next":"1.1.0-alpha2"}}