{"bin":{"gqlserve":"dist/index.js"},"bugs":{"url":"https://github.com/aerogear/graphback/issues"},"dist":{"shasum":"8bd0180b2f3dc1370b6ac1b5ee25bebe5792f66c","tarball":"https://registry.npmjs.org/graphql-serve/-/graphql-serve-1.0.0-beta7.tgz","fileCount":45,"integrity":"sha512-6zWzyzycQ7sMkUWUR+AL8iCBJRDqULEkc5UuLx6rqSpCpdxZNaTMk02BIpsX+mJXOs9TElUl34N3pfN+kBlkDw==","signatures":[{"sig":"MEUCIGw5s2c8YUfZ7Wob5WvCdFd+w2B9CG9M3NeuJFgNY58cAiEAmVffUODAwqnbc9PPDBkmDmBv8CHiGDe/i3d2fK20wFI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbLDWCRA9TVsSAnZWagAAA14P/22ncf1YjJdP52qM3bj4\nIWZqqXDOH1zwUkTePJvU47pigRdze+VTZDtjsP45ugR8GL1NDLa7VWkg9PIS\nq3YAfS8FgDe5YAvrMYsf+cERNeuIVKTbP2h1Ms9XuaKb59KQWWt9Wr7acGEv\nnNS6ME0GjubS+BexgNNnGjDgBC83c7PZaT2dy3rH+F4spFYatZa57X/PeQ0F\nzbueLly6zPSUVfpH0jWkaVucLnnwqMle/SWWTgP/eOsnDOO7J+LufiJRCmWL\nT0dnpIL1/c9fWa5HruC9FUeiHCexmUGZkcpqerATofQOh8yx2rDHdc/1MYu8\nUyWL2V99ScEVhAjlaStcheCeXvqH+oONam5EDvaI/emwdbMr+Dwlvl9VFaEb\nI2G2yseONYNtVQcXpGGwR8MbtRwh6yoYRyBZ+peY19ifnkLbHNr+l4kaForE\nL5K6uoTrXctGZ+M9QXYRaeaPSVaGwN3yFt+Xg723g0RmYti5xCb3cv0Hzh1S\n6w1vy1TI+M3xr5yjR/KzvCqLoU9rAB/XdA3TkKGWLoiubYpNPOnjaVPjsftK\nMnkmcgHoWN1iTyS16MuZWt5lTVGZ6y75xfYTobxCLdNedEMdMeNkKfFN+EgB\n++RaaPPbpI4Ut7mSB32bV9gyv3GA8q1TOEy58SUX50dxYF9GiEXWasIWMLlY\nFL1w\r\n=4V8t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"graphql-serve","types":"types/index.d.ts","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","license":"Apache 2.0","scripts":{"lint":"eslint --ext js,ts .","test":"jest","build":"tsc","clean":"rimraf coverage dist types","watch":"tsc -w","print-schema":"ts-node bin/printSchema.ts"},"_npmUser":{"name":"aerogear-ci","email":"mziccard@redhat.com"},"homepage":"https://github.com/aerogear/graphback/tree/master/packages/graphql-serve#readme","repository":{"url":"git+https://github.com/aerogear/graphback.git","type":"git"},"typescript":{"definition":"types/index.d.ts"},"_npmVersion":"6.14.6","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>","directories":{},"maintainers":[{"name":"wtrocki","email":"wtrocki@redhat.com"},{"name":"darahayes","email":"dara.s.hayes@gmail.com"},{"name":"aerogear-ci","email":"mziccard@redhat.com"},{"name":"ephelan","email":"ephelan@redhat.com"}],"_nodeVersion":"12.18.4","dependencies":{"cors":"2.8.5","glob":"7.1.6","chalk":"4.1.0","yargs":"16.0.3","express":"4.17.1","graphql":"15.3.0","mongodb":"3.6.2","get-port":"5.1.1","graphback":"1.0.0-beta7","@graphback/core":"1.0.0-beta7","@graphback/datasync":"1.0.0-beta7","@graphql-tools/load":"6.2.3","apollo-server-express":"2.17.0","mongodb-memory-server":"6.7.6","@graphback/runtime-mongo":"1.0.0-beta7","@graphback/codegen-client":"1.0.0-beta7","@graphback/codegen-schema":"1.0.0-beta7","@graphql-tools/graphql-file-loader":"6.2.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"26.4.2","eslint":"7.9.0","rimraf":"3.0.2","ts-jest":"26.4.0","ts-node":"9.0.0","typescript":"4.0.3","@types/jest":"26.0.14","@types/node":"12.12.62","@types/pino":"6.3.0","@types/chalk":"2.2.0","babel-eslint":"10.1.0","@types/express":"4.17.8","graphql-request":"3.1.0","eslint-config-prettier":"6.11.0","@typescript-eslint/parser":"4.1.1","@typescript-eslint/eslint-plugin":"4.1.1"},"peerDependencies":{"graphql":"^14.0.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-serve_1.0.0-beta7_1600958677561_0.682631965340539","host":"s3://npm-registry-packages"},"_id":"graphql-serve@1.0.0-beta7","version":"1.0.0-beta7"}