{"name":"graphql-serve","version":"1.1.2","main":"dist/index.js","types":"types/index.d.ts","license":"Apache 2.0","typescript":{"definition":"types/index.d.ts"},"repository":{"type":"git","url":"git+https://github.com/aerogear/graphback.git"},"bugs":{"url":"https://github.com/aerogear/graphback/issues"},"homepage":"https://github.com/aerogear/graphback/tree/master/packages/graphql-serve#readme","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.9","@types/jest":"26.0.19","@types/node":"12.19.9","@types/pino":"6.3.4","@typescript-eslint/eslint-plugin":"4.9.1","@typescript-eslint/parser":"4.9.1","babel-eslint":"10.1.0","eslint":"7.15.0","eslint-config-prettier":"6.15.0","graphql-request":"3.3.0","jest":"26.6.3","rimraf":"3.0.2","ts-jest":"26.4.4","ts-node":"9.1.1","typescript":"4.1.3"},"dependencies":{"@graphback/codegen-client":"1.1.2","@graphback/codegen-schema":"1.1.2","@graphback/core":"1.1.2","@graphback/datasync":"1.1.2","@graphback/runtime-mongo":"1.1.2","@graphql-tools/graphql-file-loader":"6.2.6","@graphql-tools/load":"6.2.5","apollo-server-express":"2.19.0","chalk":"4.1.0","cors":"2.8.5","express":"4.17.1","get-port":"5.1.1","glob":"7.1.6","graphback":"1.1.2","graphql":"15.4.0","mongodb":"3.6.3","mongodb-memory-server":"6.9.2","yargs":"16.2.0"},"peerDependencies":{"graphql":"^14.0.0 || ^15.0.0"},"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@1.1.2","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-6dAmyJgAtiOrOnPBDwEghybApqUB3Lp+Z9UA8o/fVqw7pXW8AxuLxP6XrHt9JC29BaLGPYxNI0yWhGcA9dZ8og==","shasum":"1c659f5b3033782e01732e492d891282c42168d1","tarball":"http://registry-npm.ywwl.com/graphql-serve/download/graphql-serve-1.1.2.tgz","fileCount":54,"unpackedSize":52495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNi4qCRA9TVsSAnZWagAAlzwP/jYiYK5DWVZk3q5JGCzq\nefYXV6U2eYoHv0lfnaH5FAEjGhQa8XMe0m8AuGADtjNJSQc3lvtOJWQJNPAj\nXsI5xfoKpXidV3hm8PusL+FzWI6XO5GW9GBgEfheeBjFPpAvALYc2gfYLwdI\nirJrnzNIpWw6Hl1/1WE/E15oaEh2EFdy1EBMEus3MfX1CeLusXZHRmWx2Vao\n/F28cSbFlxPUwRwDc87GdItfOApdV7+a9QXOt5jfs5YNM4GO6rnMxlex9a6n\nAQUM0113Goqc//JwkuQzMDxMV9o6BcQpxONwBAsJw7J4k6CQqom5l3AnDkG6\nueQ8QcDjxFsLP441hjvA6KjLSnRjGxlqBPrA8tIPyPKLRiK24E59HaTC+QMn\nuxMG8F6q1efzEUgTN0lNC34uX24E5IVxAjD/ObdUNI3kyVR8/qC9WTf1vn1B\nF1+2YYSaRk8voS7ij78yxmZyx0zevqQVbLnMHvQRcK6qo+KkPtnVoM6kjA8M\nOdVMWWxr6RABQaFaIa8MOdg0XtBZzPamfYTKdcxsM9/VIkrbE0mqtzJz/q1W\na5k6+lCId6+62MgtnAglRvuk9UYQgKvuxw5hvnOsO1txV8XjEf4g8Nj+boMo\nFb9iStgFQ/OjY18qThVl+lIck4gs3ri7RxZaRXIgji9ns1K2eYXjHzPhOovn\nfDqn\r\n=FoWq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBaXKvr/diuzq7Irki5OhneUTzO1UaQLA5cxk9OCo2oUAiEAwJBR1b5lLLniT1eU7+wfXwNYzojRC1jPDmG62OmGnKE="}],"size":14969,"noattachment":false,"key":"/graphql-serve/-/graphql-serve-1.1.2.tgz"},"_npmUser":{"name":"aerogear-ci","email":"mziccard@redhat.com"},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-serve_1.1.2_1614163498130_0.8889258795001673"},"_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":1614163498331,"_cnpm_publish_time":1614163498331,"dist-tags":{"latest":"1.1.2","next":"1.1.0-alpha2"}}