{"_id":"@ash0080/fastify-hasura","_rev":"3-3569c6d4a8fbcad4fda90cb879796152","name":"@ash0080/fastify-hasura","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@ash0080/fastify-hasura","version":"1.0.0","description":"A Fastify plugin wrapping @ash0080/hasura-sdk and graphql-request for Hasura","main":"build/main","typings":"build/main/index.d.ts","module":"build/module/index.js","scripts":{"pretest":"npm run lint && tsc --noEmit","test":"env $(cat .env) tap --ts -j1 -R=specy -o report.tap -w test/**/*.ts","lint":"eslint . --cache --fix --ext .ts,.tsx","build":"tsc -p tsconfig.json"},"keywords":["fastify","hasura","schema","metadata","healthz","pgdump","graphql","@ash0080/hasura-sdk","graphql-request"],"author":"","license":"ISC","dependencies":{"@ash0080/hasura-sdk":"link:../hasura-sdk","fastify-plugin":"^3.0.0","graphql":"^16.2.0","graphql-request":"^3.4.0"},"devDependencies":{"@types/node":"^17.0.8","fastify":"^3.25.3","tap":"^15.1.5","ts-node":"^10.1.0","typescript":"^4.5.4"},"gitHead":"62ba116af110e3e264abcd84cb9b83882753bc3a","_id":"@ash0080/fastify-hasura@1.0.0","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-qQ7wsbNVKnuLT2bqDUpJjZLVBoG1TKQaBRMDQNfcv+bY8hkB+XU7YhujA4s328+7YOyhJpoThaXDdnAlD3D38g==","shasum":"648a46fbcf4c2af55c1dd9d1fc684957141c98cd","tarball":"https://registry.npmjs.org/@ash0080/fastify-hasura/-/fastify-hasura-1.0.0.tgz","fileCount":14,"unpackedSize":18130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2bEICRA9TVsSAnZWagAAePcP/0XJ3M7QYqtcInHabefP\nxD1I76rHwMiJjRNYRGWf9yOxgc+ps/OuwiRH2wT1/ATjwkNikeTL+d/HqBG3\nGwSN5IXorexM4mMdg7Xti6LV7rPFYwevXsmxKVRGsEUkMSoL4bZvxgsNMzTX\nAwDoJ//pRqwxiXM+6h/jkzHhHow8qRlfEUbSFvI1JOA4KyqzHd4y78ByUGZK\nPfbh6OjDQ/TN6oJG1cbX4J82Jy0j/SDBqjI9T5fYywtv1u0yxvaHQk/qBODK\nGwzaCRVC2bX65qe9F+jPrd9YrRoHVsVY7nJDQFzbLFyqkx2fZg+iLMGzXNXj\n+yFYShg/QCiQ0a55KQbJfkptvLgllvyZZTkH8mtTmCixS8RKVQ40ytIqZuEU\nznDjs2tUSfk9eDhx4QmDP0ebeRCxQxqDRdn6Jd+agIRr9NUlc7Whf5QI716M\n9aEvHVETJnx9HnzTr1m/pYoUZB7tRollGjYX+AkK86QKh5S9+FY+H5H6ZkJq\nwiDXe/9Kghv6vUCyyKd+0gMKN/imXv74vhF2lV0TfzXjidrFSSM2wWr14NO1\nZe9pcPKJ+ExDaoRXSdBZRevqDCEV1I44iE9cq14ewcntpBIamV/s4j1GL9zk\nYlWM8CbeeCAI4lhtWT7E4B3XUWAZr6nbVj5oKmqYdVjgcLj2xgFAUgZBmgzQ\n6mRF\r\n=/+KC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMheqg1VTOVn6/BoGHU7Y4J32JrIhC8H6Kjud0k59K2AIgSL5LhqTYNVlwIil1ovKhpL7/hBhqzBsiky2GavCGOmM="}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-hasura_1.0.0_1641656584152_0.6556655303309273"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ash0080/fastify-hasura","version":"1.0.1","description":"A Fastify plugin wrapping @ash0080/hasura-sdk and graphql-request for Hasura","main":"build/main","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/ash0080/fastify-hasura.git"},"scripts":{"pretest":"npm run lint && tsc --noEmit","test":"env $(cat .env) tap --ts -j1 -R=specy -o report.tap -w test/**/*.ts","lint":"eslint . --cache --fix --ext .ts,.tsx","build":"tsc -p tsconfig.json"},"keywords":["fastify","hasura","schema","metadata","healthz","pgdump","graphql","@ash0080/hasura-sdk","graphql-request"],"author":"","license":"ISC","dependencies":{"@ash0080/hasura-sdk":"link:../hasura-sdk","fastify-plugin":"^3.0.0","graphql":"^16.2.0","graphql-request":"^3.4.0"},"devDependencies":{"@types/node":"^17.0.8","fastify":"^3.25.3","tap":"^15.1.5","ts-node":"^10.1.0","typescript":"^4.5.4"},"gitHead":"2af711c4941b5b81d7e6ccbaa098d3444ed10cc9","bugs":{"url":"https://github.com/ash0080/fastify-hasura/issues"},"homepage":"https://github.com/ash0080/fastify-hasura#readme","_id":"@ash0080/fastify-hasura@1.0.1","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-M1M/KWb+KuHpQA+6in3HmdbSwO9kxlSBTQUC5HAcPR32RTsAcBUzLIluc09rviwg/qbGrCIwVRR2f+XE+XHdng==","shasum":"06578fdca43d6794c36800b7b4d938c5044af100","tarball":"https://registry.npmjs.org/@ash0080/fastify-hasura/-/fastify-hasura-1.0.1.tgz","fileCount":14,"unpackedSize":18193,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2bKXCRA9TVsSAnZWagAAkCYP+wQfYRCobo8XktKyREZF\nyYmFuI8H6T3u8r2sd/KMszQKLoaeouzjRNGTWquKQcbif1+o1moIKSJC6oNK\nTWBBdXd1CvqPjzethN7fZS3LKT9MQie6/9+BGrGv6e7QxMQSrAplzp5GI908\nbK1oi1D3mbJui3J0AEKSq5eJSmY25nS/iqmZVLPfxK/Kx79Zb+M5cJJHjbni\nCVwnKJ6gW7yBLlczofj2dioOBb/sBKdNZZm/eODLtQSgMkiW4T0cfHk9szWG\nlLNz34Uro9cDl3nRALibNd/qtzgmQpFU7Zj7vF+g2WoU9Kpm6TK+pq+0cux3\ntgTmq/hbiBdNiSfIADvMnreWkFNDkjbNGWJHcK1gfdv2urZeqwzxIvU7SMib\nM3bLdYoVuG4SYs0M7ui4q0YNETxtrNCJVaJoAJqFNdutTKS98Wof+lO4JN/+\nTpI9xAM/rUBTLkipNGkGBbuVFX4ErXZ1b2mFW5EkAmeraaa8m6gSkvPG1x5l\n+KkI0xdmh/mr0o1sW3CgGjIc2EzukHMoAK5Ryn/lVJYzy8mvsNcXxpt8jYKB\nw+84rBgGGM52g/XO8Bje2u0A9HoZydQNC9u2J49YoimvIbjIAGGhwerCARs1\nObP7mT0iOEO5W/G+7EfIv2FDJPB5o08XdOBZn4MNzheRzgnGU/nJQ37JjtOQ\n6DyV\r\n=yzTn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj/cPAqgvdBzPPv8ERSYRUX3jlOAfWuu8JvQ377PaR+gIgSpk+/q0X9/VzBXx/eLF7agyhJZ72B2k4tqTdQ41dRak="}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-hasura_1.0.1_1641656983093_0.4617746207963369"},"_hasShrinkwrap":false},"1.0.2":{"name":"@ash0080/fastify-hasura","version":"1.0.2","description":"A Fastify plugin wrapping @ash0080/hasura-sdk and graphql-request for Hasura","main":"build/main","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/ash0080/fastify-hasura.git"},"scripts":{"pretest":"npm run lint && tsc --noEmit","test":"env $(cat .env) tap --ts -j1 -R=specy -o report.tap -w test/**/*.ts","lint":"eslint . --cache --fix --ext .ts,.tsx","build":"tsc -p tsconfig.json"},"keywords":["fastify","hasura","schema","metadata","healthz","pgdump","graphql","@ash0080/hasura-sdk","graphql-request"],"author":"","license":"MIT","dependencies":{"@ash0080/fastify-hasura":"link:","@ash0080/hasura-sdk":"^1.1.0","fastify-plugin":"^3.0.0","graphql":"^16.2.0","graphql-request":"^3.4.0"},"devDependencies":{"@types/node":"^17.0.8","fastify":"^3.25.3","tap":"^15.1.5","ts-node":"^10.1.0","typescript":"^4.5.4"},"gitHead":"04ccf2bf103dceb157d472a32a106fc0f163813a","bugs":{"url":"https://github.com/ash0080/fastify-hasura/issues"},"homepage":"https://github.com/ash0080/fastify-hasura#readme","_id":"@ash0080/fastify-hasura@1.0.2","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-KAcVyppFRjhAcHgnzh9Wq4cd2uiXCfwqDSkrWnGlzGt4CJbGl5bE/Z5e7z5ien2v5P8asCCfae1IOLugnnM3sQ==","shasum":"7eca2fe9606cea384d43dd3e428cc129402460ce","tarball":"https://registry.npmjs.org/@ash0080/fastify-hasura/-/fastify-hasura-1.0.2.tgz","fileCount":14,"unpackedSize":18221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2p/cCRA9TVsSAnZWagAAJfgP+QBszmRoooPDiT7Gg7B4\n8/MASNka6hNRGeffhzS/9pI3e6iY/MG/47oGEOpMKYxHrTQEaS8IR8tJjrz+\nDXDgK1ZQHrPLn461oQnKSep2J8kb1e0B86taplecy7jp/gj3VfCYMBS+cDAQ\nrGmKADRSdMTFhO/8Z6SHz1vcYGkef/Fu2CbV2rWERcweqlYrxBCpY3p72wnY\n5qnXWcH854CnxiNglCXLs8GcoQECzzk0nZ9ahf+sYbAz0roxKmwuZyiEBraV\ntO5LIN3woILXiTTtM23vHAX/ziI61rYWkEgH4baubmDC7tXx8lKtsiq4AxYP\nYgdLBxeVBosAAxr9BLVfp+W1iozw8Jkho0VB8zXKemeQfgBzUEzuYX7a9y8C\nNdroMC02qZlGRVo6jhDCzX17Tui+Ghim5lyTTVesl/ZD59K5hy0UPdsoTgyb\nZhAyqQM4aEQu8OA1edtlU31KBcKi4zYGXnY3qs517rFZAmo/pQVS3FpFUGRr\n25OZHC1M4WUVecMZxPJBcGYpc//4L5ME3aJkufMwE4QO48e+S6Gnc/3eW0j1\nWY1XiaIoL60vY1Xdpog1uw5Hs+F1RTfRgthyGqPzCJXzP94f2X5IQ+IJ4F8S\n0+PvKDIQ9CSkDVd4DCoAo1oz3MyDXeERcmhqW/LZB+/YoAD8uh4ebrScbD9v\nkGAL\r\n=ZH81\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXPlUEtO/+siEN4cijJB/iCZwa9NyMssBn7SKY4uElegIgfzFPLqMSp7sQyURxHWpOdLRqQCU18DquZMRwrLtPyl8="}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-hasura_1.0.2_1641717723985_0.9575391099014501"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-08T15:43:04.091Z","1.0.0":"2022-01-08T15:43:04.331Z","modified":"2022-04-04T15:45:15.232Z","1.0.1":"2022-01-08T15:49:43.230Z","1.0.2":"2022-01-09T08:42:04.155Z"},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"description":"A Fastify plugin wrapping @ash0080/hasura-sdk and graphql-request for Hasura","keywords":["fastify","hasura","schema","metadata","healthz","pgdump","graphql","@ash0080/hasura-sdk","graphql-request"],"license":"MIT","readme":"# @ash0080/fastify-hasura\n\nA [Fastify](https://github.com/fastify/fastify) plugin wrapping [@ash0080/hasura-sdk](https://github.com/ash0080/hasura-sdk) and [graphql-request](https://github.com/prisma-labs/graphql-request)\nfor [Hasura](https://github.com/hasura/graphql-engine)\n\nSo, by importing this plugin, you will have access to hasura's graphql, schema, metadata, healthz, pgdump , 5API's in total\n\n## Installation\n\n```yarn add @ash0080/fastify-hasura```\n\n```pnpm add @ash0080/fastify-hasura```\n\n## Features\nThis plugin covers most of the features of the official api's\n\nSee hasura's [official documentation](https://hasura.io/docs/latest/graphql/core/api-reference/index.html) for details\n\n## Usage\n```js\nimport fastifyHasura from '@ash0080/fastify-hasura'\n\nfastify.register(fastifyHasura, {\n  hasura_base: 'http://localhost:8080',\n  admin_secret: 'your-secret',\n  // ...other options\n})\n\n// then you can use\nfastify.hasura.graphql(query, variables)\nfastify.hasura.schema.sql({sql: 'select * from users'}).run()\nfastify.hasura.metadata.source.add({})\nfastify.hasura.healthz()\nfastify.hasura.pgdump()\n```\n\n## API\n\nOptions:\n```\ndeclare interface FastifyHasuraSDKOptions {\n  hasura_base: string    // required\n  admin_secret: string   // required\n  api_graphql?: string   // default: /v1/graphql\n  api_metadata?: string  // default: /v1/metadata\n  api_health?: string    // default: /healthz\n  api_schema?: string    // default: /v2/query\n  api_pgdump?: string    // default: /v1alpha1/pgdump\n}\n```\n\nsee [@ash0080/hasura-sdk](https://github.com/ash0080/hasura-sdk#api) doc\nand [graphql-request](https://github.com/prisma-labs/graphql-request#examples) doc\n\n## TODO\n1. Maybe an auto process to generate Actions/Events/CronEvents handlers\n\n## Changelog\n\nThe changelog can be found on the [Releases page](/releases).\n\n## Contributing\n\nEveryone is welcome to contribute. Please take a moment to review the [contributing guidelines](Contributing.md).\n\n## Authors and license\n\n[ash0080](Beorn) and [contributors](/graphs/contributors).\n\nMIT License, see the included [License.md](License.md) file.\n","readmeFilename":"Readme.md","homepage":"https://github.com/ash0080/fastify-hasura#readme","repository":{"type":"git","url":"git+https://github.com/ash0080/fastify-hasura.git"},"bugs":{"url":"https://github.com/ash0080/fastify-hasura/issues"}}