{"name":"@graphback/runtime","version":"0.10.0-rc3","description":"GraphQL-Code-Generator compatibile schema generator","main":"dist/index.js","types":"types/index.d.ts","typescript":{"definition":"types/index.d.ts"},"author":{"name":"wtrocki@redhat.com"},"scripts":{"clean":"rimraf coverage dist types","build":"tsc","watch":"tsc -w ","lint":"tslint -t stylish --project \"tsconfig.json\"","test":"ava","pretest":"npm run build"},"ava":{"files":["tests/**/*"],"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register"]},"engines":{"node":">=10.15.3"},"license":"Apache-2.0","publishConfig":{"access":"public"},"devDependencies":{"@types/graphql":"14.2.3","@types/node":"12.12.21","ava":"2.4.0","graphql":"14.5.8","rimraf":"3.0.0","sqlite3":"4.1.1","ts-node":"8.5.4","tslint":"5.20.1","tsutils":"3.17.1","typescript":"3.7.3"},"dependencies":{"@graphback/core":"^0.10.0-rc3","dataloader":"2.0.0","graphql-subscriptions":"1.1.0","knex":"0.20.4"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"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## Graphback-Runtime \n\nAutogenerated runtime layer for your schema.\nGraphback runtime can provide out of the box resolver and database layer for your application\nwithout writing any line of the code.\n\n## Usage\n\nTo use runtime capabilities developers will need to create data provider.\nCurrently 2 data providers are supported:\n\n - KnexDBDataProvider\n - PgKnexDBDataProvider\n\nDefault data providers utilize knex.js library as it supports wider range of the databases out of the box\nand provides great developer experience. \n\nThen developers can create runtime instance:\n\n```ts\n    import { SchemaGenerator, gqlSchemaFormatter } from \"@graphback/codegen-schema\"\n    import { graphQLInputContext } from \"@graphback/core\"\n\n    const inputContext = graphQLInputContext.createModelContext(schemaText, {})\n    const schemaGenerator = new SchemaGenerator(inputContext, gqlSchemaFormatter)\n    const schema = schemaGenerator.generate()\n\n    const client = new Knex(...);\n    const graphbackOptions = {...}\n    const modelString = `type Test ...`\n    \n    const defaultProvider = new CRUDService(client);\n    const resolverGenerator = new LayeredRuntimeResolverGenerator(inputContext, defaultProvider)\n    const dbClientProvider = new PgKnexDBDataProvider(client);\n    \n    const resolvers = resolverGenerator.generate();\n    console.log(schema, resolvers)\n```    \n\n\nCheck our example application: https://github.com/aerogear/graphback/tree/master/examples/runtime-example \n\n\n## Usage with Generated resolvers\n\n`@graphback/codegen-resolvers` package generates a resolver layer that utilizes the CRUD layer generated by the runtime framework.\nBy default resolver layer will based on the `crudService` field attached to context.\nDevelopers can use the helper function `createKnexRuntimeContext` that will build default context for resolver layer.\n\nSee example app:\nhttps://github.com/aerogear/graphback/tree/master/examples/generator-fullstack\n\n### Running example\n\n- Start the database\n```\ndocker-compose up -d\n```\n\n- create database\n```\ngraphback db\n```\n- Start the server\n```\nnpm start\n```\n\nEnjoy runtime app\n","readmeFilename":"README.md","_id":"@graphback/runtime@0.10.0-rc3","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-7C78KOia6WCWvasEUaB3ptdJFewsRqNR6k6Z9MdpCOfWVAiMBVM5Iwua7rv3AAIXG76GQiSzEHvaQCj4j++vtA==","shasum":"95786399146d2ddad7c56ecbc928b7286325e783","tarball":"http://registry-npm.ywwl.com/@graphback/runtime/download/@graphback/runtime-0.10.0-rc3.tgz","fileCount":67,"unpackedSize":86247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAP4MCRA9TVsSAnZWagAAmKYQAImFL5ePVL6lqm2YnLeU\nq3dVt4hqyqGsB5Z9hkQjaWTMa2AsHEspiFgYI6K8CN4klFzRGmcObnrSAwgi\n/j5wMtdDTBKHfxlFmopFAbp9jLegMzXVjj7kSm2QdkQhJp0u7uBds48zF5M/\nzjtJAlDMVOS3JV/vIaOvBNVZndvn3woY2OOjBt29Dn1ipx9r43CK0t7DnIRT\nD8EDoEMa78ns9nR9Bx+YQbC7rP7ZfwDz7fkB/WoFj2hSjMidUp/xbX68rQUk\njsEEG/TM1VqFs6sOzld6czJoFfJ4c/cfqQSCUxxZ2x45qXoMLOv352E1/KWu\nDr8hAwIVZjBrQ1aj1PZzxE/Nu8XODRbxAUIWaN7iXCkjg22ocv65RG20lh+N\nqd7z9/COqFjRy99HMukeLjxfMCw48lq/nXeO6OxIRUHJwmO0wEGrb2fWDU5j\nJzr4ZvCtUJIb4RZnfLz1MGs+7GlIZax8Z8pqnbdNnr2wS1SyOiC368uOjNGf\niKdwJKFEtJdDlf0RS5Bu3d/9nz3DxPhsPyUVTeCy/4UQCfs/UfGoERHKBLgX\ntbt2K4c+X8ZwNRzHlMq9a5O13kL9PqJSNb0+mBGUQzkzOmu33TSpbKfC1jsX\nTO3KBOzUDsgBuk9YmK6nixrr6CJb1BW8y+Og6K1N3kgYYjGtTZ5eg4Cj8u5d\nUWzN\r\n=FXMa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvP+DKLXg0GZwRiXEHZuOT5UMfXvsOUKXdl+gjwGQdFAiEAn0aZ7DUqDoKlD6jf3/ZrJ7gTiSU8StnTmBqs+UyvGtw="}],"size":16982,"noattachment":false,"key":"/@graphback/runtime/-/@graphback/runtime-0.10.0-rc3.tgz"},"maintainers":[{"email":"dara.s.hayes@gmail.com","name":"aerogear-ci"},{"email":"ephelan@redhat.com","name":"ephelan"},{"email":"wtrocki@redhat.com","name":"wtrocki"}],"_npmUser":{"name":"aerogear-ci","email":"dara.s.hayes@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/runtime_0.10.0-rc3_1577123339731_0.31810089587941026"},"_hasShrinkwrap":false,"publish_time":1577123339877,"_cnpm_publish_time":1577123339877,"dist-tags":{"dev":"0.10.0-dev3","latest":"0.15.0","next":"0.15.0-alpha1"}}