{"bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"dist":{"shasum":"82be8c63b857e9817c1d997a2640b98856669106","tarball":"https://registry.npmjs.org/@graphql-yoga/node/-/node-2.0.1-canary-4a80dfc.0.tgz","fileCount":7,"integrity":"sha512-WyZq9XHfMBRpNv+nlZHvTT/kr7OeFOKDx0Qr7okF7WfXBP9tEiznagR71RG69BMwb5jTNiu++7EulgfuwZGZnA==","signatures":[{"sig":"MEYCIQDsOeN7Ikq0+m8nGpmGKQUcxHiCCCUXZj/0Dqky+0QXVQIhAJ+uR2iVNnW7yB5fIFED3VXBPfhSk1BNyF1II3ooBmSZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTAE9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6mg//Tnau+h69Eo5LyPht09wjKsXj4RtrrQ2lHLs5Uz+ZqGWOyZb+\r\nPirkcValQ0aZqeukIfrGCEA3RLsCyKutJbppSbdQWNp1lGNlcuBx78pveNep\r\nJOm280CjSWsAj30CfKdBbJCAIDrncOlIfA61l41Aa4j7utdyombpgWfGLI3m\r\nGJ0nmU+BIgWsGNB7Carj8sGl/7pBmBeR3ZrlrHvQoiCuMs5zueHXvm3YGupX\r\nxZufNjdXYZQo4d16t7LVfct+Y3JqdN1IPKBjiVIYxYbNpzKUEa4YZ6gGZb1I\r\nYF/vfdSq5MZJbc+jz/MUj5ItSlfn+0fVhnPTiobsqJZp8KnCQnPhwp8Qd5/z\r\nnaM/EKjFRUW7OnBj2nrE9gib+BzFBUYdLyJbjSd0h8I1IpegALFmZLTJSQa5\r\n38CNasfic3HmkSoWYz/sUoROqJRPMbNHziSkdqluhKrEUFBk1l02GXRx7KSz\r\n5TCo2ZzouOw2GZtdD1T/XNKxBS+MPB2G8buIr1ShkCZbCPqc1GdSlqD8K18b\r\n8dwQoSy+5zMUi/y+/oKmf0xTb0cPXEl8QBU06vxjSm4k59EZal7ZNorGcIRt\r\nwO4Snos3dRHEDcQLEGMoRoE6Eqg0bAhPdR4JWoIOChGt2qNGNFazGfabLT1e\r\ngTDvmK0BD2d21Z+a5sEaWxBP2zAorouAkIU=\r\n=GcAv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"@graphql-yoga/node","author":{"url":"https://saihaj.dev/","name":"Saihajpreet Singh","email":"saihajpreet.singh@gmail.com"},"module":"index.mjs","readme":"# `@graphql-yoga/node`\n\n```js\nconst { GraphQLSchema, GraphQLObjectType, GraphQLString } = require('graphql')\nconst { createServer } = require('@graphql-yoga/node')\n\nconst schema = new GraphQLSchema({\n  query: new GraphQLObjectType({\n    name: 'Query',\n    fields: () => ({\n      song: {\n        type: new GraphQLObjectType({\n          name: 'Song',\n          fields: () => ({\n            firstVerse: {\n              type: GraphQLString,\n              resolve: (_, __, { logger }) => {\n                logger.info('I can even use the same logger!')\n                return \"Now I know my ABC's.\"\n              },\n            },\n            secondVerse: {\n              type: GraphQLString,\n              resolve: () =>\n                new Promise((resolve) =>\n                  setTimeout(\n                    () => resolve(\"Next time won't you sing with me?\"),\n                    5000,\n                  ),\n                ),\n            },\n          }),\n        }),\n        resolve: () => ({}),\n      },\n    }),\n  }),\n})\n\nconst server = createServer({ schema })\nserver.start()\n```\n","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./*":{"import":"./*.mjs","require":"./*.js"},"./package.json":"./package.json"},"gitHead":"4a80dfcfa174d36b9d4acaed00632c49cde869ac","license":"MIT","typings":"index.d.ts","_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","keywords":["graphql","server","api","graphql-server"],"repository":{"url":"git+https://github.com/dotansimha/graphql-yoga.git","type":"git","directory":"packages/node"},"typescript":{"definition":"index.d.ts"},"_npmVersion":"8.5.5","description":"```js const { GraphQLSchema, GraphQLObjectType, GraphQLString } = require('graphql') const { createServer } = require('@graphql-yoga/node')","directories":{},"maintainers":[{"name":"urigo","email":"uri.goldshtein@gmail.com"},{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_nodeVersion":"17.8.0","dependencies":{"tslib":"^2.3.1","@envelop/core":"^2.0.0","cross-undici-fetch":"^0.1.25","@graphql-tools/utils":"^8.6.0","@graphql-yoga/common":"2.0.0","@graphql-yoga/subscription":"2.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.2.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node_2.0.1-canary-4a80dfc.0_1649148220954_0.16369705994736616","host":"s3://npm-registry-packages"},"_id":"@graphql-yoga/node@2.0.1-canary-4a80dfc.0","version":"2.0.1-canary-4a80dfc.0"}