{"bin":{"gqls":"dist/index.js"},"dist":{"shasum":"db37592f7f2dc44b4a69d9b3af7423fab063fd6d","tarball":"https://registry.npmjs.org/graphql-serve/-/graphql-serve-0.14.0-alpha1.tgz","fileCount":47,"integrity":"sha512-CXxiRWn/Dj8GuboBrF/h55xB2iCRKX7SR6MTdvLSuqSl0459k11rKPZ6tST3NI3hryrb2jCEAipg/sBuSZnBMw==","signatures":[{"sig":"MEYCIQC+dpTneIbBWB+6aGBqgoeLwsP5xW0hLoFNN84sTsraiQIhAKNQnqfOyy3urUobErcQ7z11BR1vqBmR7PX/2f8CRTz1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez/XqCRA9TVsSAnZWagAAbK8P/1zvDYHXPEfYOcvJHARL\n4Ar2oUQ4NMBLkp8u/bArZgpNQKJdwmuSgnUvbaisnhBfiOwbuTebeO5h9XTI\nc7YFbABiL+viYStpbNC642DcjqKijmtwQQONP6YGar2Ujuvv+uTvZlrvtWoA\nGl0U5Qf1N8I6dQalcmdHJLPKvE6EFjCiGW1J5o4fNWV2SF4ihNZxmTpo+1eG\nN4lEQDnzPWMeEWtyxhQ2Xl77QtqxH+Hgok0SYFY8L4f5yZjowoAn3y3VRz1n\nkSDDakDOjOAphog8068d4Yk1Gmb2Ku2b0GeUOsP2zdugAc7oVcNax4ACm5m2\n/5eM51dJtuncJfqC5p0Mi29HoYG85GxxSrKjmU7P6bfrqv1SKVLJ5qjaruTb\nZNxyOU6okBIJFbNPpIPbLQAD7XXBsdxcf62m/hq1EJp/YF1mHNl2UcoML1K7\nGdEF0iQZ2G3jgUF8XgIPExKxOh3A6GvHLJvfnEgIMRBnolPnNKVizqL3sMMj\neqLNcDXKjaGH74uAlr+tQ9Rbl5S4e8HTfMjtkZTgZ1ANDe+R9YlCt5k0Qb2v\nU7mGskCpZGu1eJH4KYzXOB8zHeN/Xhp+O9MUtm7UUenzc1cpzh9EAi94af9W\nknLo0r7YGTbsXHtacohy+BAeqlsNxYct9zA5p62MiN1lp0Mq9qAX1NbzhEns\nPv/3\r\n=5znD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","name":"graphql-serve","types":"dist/src/index.d.ts","readme":"## Graphback\n\n<p align=\"center\">\n  <img width=\"400\" src=\"https://github.com/aerogear/graphback/raw/master/website/static/img/graphback.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","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"},"typescript":{"definition":"types/index.d.ts"},"_npmVersion":"6.14.4","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>","directories":{},"maintainers":[{"name":"wtrocki","email":"wtrocki@redhat.com"}],"_nodeVersion":"12.17.0","dependencies":{"cors":"2.8.5","glob":"7.1.6","knex":"0.21.1","yargs":"15.3.1","express":"4.17.1","graphql":"14.6.0","mongodb":"3.5.8","sqlite3":"4.2.0","get-port":"5.1.1","graphback":"0.14.0-alpha1","graphql-tag":"2.10.3","knex-cleaner":"1.3.0","graphql-config":"3.0.2","@graphback/core":"0.14.0-alpha1","@graphback/runtime":"0.14.0-alpha1","graphql-migrations":"0.14.0-alpha1","apollo-server-express":"2.14.0","graphql-subscriptions":"1.1.0","mongodb-memory-server":"6.6.1","@graphback/runtime-knex":"0.14.0-alpha1","@graphback/runtime-mongo":"0.14.0-alpha1","@graphback/codegen-client":"0.14.0-alpha1","@graphback/codegen-schema":"0.14.0-alpha1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"26.0.1","eslint":"6.8.0","rimraf":"3.0.2","ts-jest":"25.5.1","ts-node":"8.10.1","typescript":"3.9.3","@types/jest":"25.2.3","@types/node":"12.12.42","@types/pino":"5.20.0","babel-eslint":"10.1.0","@types/express":"4.17.6","graphql-request":"1.8.2","eslint-config-prettier":"6.11.0","@typescript-eslint/parser":"2.34.0","@typescript-eslint/eslint-plugin":"2.34.0"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-serve_0.14.0-alpha1_1590687210335_0.3249236620700726","host":"s3://npm-registry-packages"},"_id":"graphql-serve@0.14.0-alpha1","version":"0.14.0-alpha1"}