{"name":"graphql-serve","version":"0.16.0-alpha5","main":"dist/src/index.js","types":"dist/src/index.d.ts","license":"Apache 2.0","typescript":{"definition":"types/index.d.ts"},"bin":{"gqlserve":"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.7","@types/jest":"26.0.9","@types/node":"12.12.54","@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.6.0","eslint-config-prettier":"6.11.0","graphql-request":"3.0.0","jest":"26.4.0","rimraf":"3.0.2","ts-jest":"26.2.0","ts-node":"8.10.2","typescript":"3.9.7"},"dependencies":{"@graphback/codegen-client":"0.16.0-alpha5","@graphback/codegen-schema":"0.16.0-alpha5","@graphback/core":"0.16.0-alpha5","@graphback/datasync":"0.16.0-alpha5","@graphback/runtime-mongo":"0.16.0-alpha5","@graphql-tools/graphql-file-loader":"6.0.18","@graphql-tools/load":"6.0.18","apollo-server-express":"2.16.1","chalk":"4.1.0","cors":"2.8.5","express":"4.17.1","get-port":"5.1.1","glob":"7.1.6","graphback":"0.16.0-alpha5","graphql":"15.3.0","graphql-migrations":"0.16.0-alpha5","graphql-subscriptions":"1.1.0","graphql-tag":"2.11.0","mongodb":"3.6.0","mongodb-memory-server":"6.6.3","yargs":"15.4.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```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","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.16.0-alpha5","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JdXuc46W/dWyIgYU3pAak1qlxSDmsAQZBm5wO+A/M7jmz69/AIoHUlrZn4MGbW3W2m38+UK/4EFyEsCGflXfPg==","shasum":"c5a2293fdaf3896f2186cc70aee0404da94c756f","tarball":"http://registry-npm.ywwl.com/graphql-serve/download/graphql-serve-0.16.0-alpha5.tgz","fileCount":45,"unpackedSize":41904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOtOcCRA9TVsSAnZWagAANW4P/0RDDxRvn7dV5k7s5BEM\n1pS6MCRaJIx8vl2fNBYtp0XXY8Q6M/GGusgXSTny+WfCL3CDSDY4vxj4JIgq\njxcn0X1iJJ/63BYCybcbySjjn9MnJiYr9JQi8AHOKmBF6iowcyew7YqFN2+Y\nrQVQF3z8wAzLBbCUVigdpM6ZH/Th32BzQc2b+jA5AVDz1i5+NIj4iowvB1i8\n9vnv7UufSO/KG18Css3N7hny4UNesJNHDXlMI/CXwZaB1Mn0uc4F60Vv4IR6\nOlwHsu3Bd3UpZw8QoNVtJqD0yMTLfqe+XdsYs9U6hVQh3o1zvQroqZg5Xikb\nIc+PJjZAreG8iZBz4u64f2E8W8OxuoNJgmBT51/RMVMtwp1XhqeQGefvPLKI\nJts6XiZPiBXcssieR1ddWSwczDoX5rd42W4qhyD/0emeJ69VTJeflWifTUbs\n6o6ilWmP9oNnGw4et/k9VtelEPB4K/h7YRchbZMOl0MKMLv/5rApCscPZekd\n9R+uEBV/PeqU9bv9rU7ln3QnMmq+SgnO1+p/eDIgl0fl/Bdln4at/mR06eUX\n96qMQNpXPFwCdshJgreCPBl3dWCiZ3ROplJUXuZ6A4xd/RMpljKrUm4VKENf\nWAk3oz5mMJ8DB52SAPKhp2s1jg3rAseOFUFmZ0nu9D1RMtL9dEmC08T8JSID\ngTwl\r\n=roBV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHILAlextepfuPxp2lTuTdVxLVDBEZhp8r6OWw6Z4/WXAiBQ4EJNkitpPbOxjPPVgY3McZiyPOrN6jaaTspxLspcBw=="}],"size":12543,"noattachment":false,"key":"/graphql-serve/-/graphql-serve-0.16.0-alpha5.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.16.0-alpha5_1597690779618_0.1493315868995484"},"_hasShrinkwrap":false,"publish_time":1597690779731,"_cnpm_publish_time":1597690779731,"dist-tags":{"latest":"1.1.2","next":"1.1.0-alpha2"}}