{"ava":{"files":["tests/**/*"],"require":["ts-node/register"],"extensions":["ts"],"compileEnhancements":false},"dist":{"shasum":"87e30c04cc0f172dedac034f24d3782311cf068a","tarball":"https://registry.npmjs.org/@graphback/runtime/-/runtime-0.10.0-dev3.tgz","fileCount":67,"integrity":"sha512-yx2wjedEUN7tueOCjA4Zbhl/iSi37UTZ8+Y5h4ln96e9GiO962nzZro/gtXk36Qw1zJafKeN1BILrnCH0QkTvA==","signatures":[{"sig":"MEYCIQDvyM1P9DSnHL7h1w+x2OIP5AmbGAA+kuxdUS8+eZjYjwIhAI/+rGRCJ4ktqWdpytL5nvziIzPS8vaWS7piDJcZH5eJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3DPvCRA9TVsSAnZWagAAPkYP/2/4NxzixdyErPalGyeT\n1JZHiquBsRTWWwEK4SjYwDItsd+mZH1pMaedbJwhli0HOa9C/st8v7gVPKMk\nx/1eiFCza+jpI68gHm6QRvu5lkIHGZUo8ysHKbkMRlmzH4n5MIyx6OovgHu9\nQxXObLxJu1Zz2a7XkZXSRFePOsrxAV8nkOwf8kJITZXzWGQHIYQgHe50+bCh\n7ShC04SQrGnJRkAu9gJRBA/CBVzJmw6iaJIC6VDE6SRbw9lN80/gd3iHGRhP\ntAEhzm4AsfwvQa8jcpnOKEPexN4+Jx2cUKDcSSrWUeS5BLO8uuJ+FZqIbcQD\nRzGJoIN78Wzx204E3vPQOCNSHSWz4i3zc+fXgyU0cng7CCyriZni1k6aDXKa\nKMIIHP1/4urKIvC7Y7FdCyLWf0sdt4bn9RQmwWtnb52Rowxxyt0gUAJL1AyH\nE/mCgSLdeYQhLaE+daR5R47G5GQKEG02HHgJll9Af4fdjSjcb4noLdioBDMu\nmYK6+4FDiXEDR6V3hInqRfsrtemCfkpJODRpF7vf5qmv7l2VafFxkb7WoQDO\nRzy3xKz+G00+h6VRwmboirYpXxWbEgy+IfLHwMOFTwvKGHgruKTjL0jcja3h\n3tloussv99jHfMYQh0R1UnR5yPOh13i9vBjnmXJY8kRu2ohAk7hKTp5D6Ntx\nSY+1\r\n=leIv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@graphback/runtime","types":"types/index.d.ts","author":{"name":"wtrocki@redhat.com"},"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","engines":{"node":">=10.15.3"},"license":"Apache-2.0","scripts":{"lint":"tslint -t stylish --project \"tsconfig.json\"","test":"ava","build":"tsc","clean":"rimraf coverage dist types","watch":"tsc -w ","pretest":"npm run build"},"_npmUser":{"name":"wtrocki","email":"wtrocki@redhat.com"},"typescript":{"definition":"types/index.d.ts"},"_npmVersion":"6.4.1","description":"GraphQL-Code-Generator compatibile schema generator","directories":{},"maintainers":[{"name":"aerogear-ci","email":"dara.s.hayes@gmail.com"},{"name":"ephelan","email":"ephelan@redhat.com"},{"name":"wtrocki","email":"wtrocki@redhat.com"}],"_nodeVersion":"10.15.3","dependencies":{"knex":"0.20.2","dataloader":"2.0.0","@graphback/core":"^0.10.0-rc2","graphql-subscriptions":"1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"2.4.0","rimraf":"3.0.0","tslint":"5.20.1","graphql":"14.5.8","sqlite3":"4.1.0","ts-node":"8.5.2","tsutils":"3.17.1","typescript":"3.7.2","@types/node":"12.12.12","@types/graphql":"14.2.3"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/runtime_0.10.0-dev3_1574712303004_0.2138117493916587","host":"s3://npm-registry-packages"},"_id":"@graphback/runtime@0.10.0-dev3","version":"0.10.0-dev3"}