{"bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"dist":{"shasum":"d1283ab9104b8b3ea9606dde0bbec8594b8610a8","tarball":"https://registry.npmjs.org/@graphql-yoga/node/-/node-0.2.0-canary-f320652.0.tgz","fileCount":7,"integrity":"sha512-4D0aMZg2SWf38vFlt+ZBAB6ENf4iThThp4HDM6uE0kC0Po/xrI83cL0XitSHIhFML+lY4w/AIZFKvHc+0adHew==","signatures":[{"sig":"MEUCIAYXG7XzT+q2itGyq+mDoM62FE+SSVx600uh+OBSg6FuAiEA8+5Jyll72K1alx3YCtMeN+jdir8au+SV6rnygmgUR80=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27813,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8m7kCRA9TVsSAnZWagAA8MUP/A02zgzl5nbRQzI8xrr4\nJRAHSICLQ8zf356atohImxxALXN62DLa5ugeSlnTfyj8imaTTNDM4U8+a7Ge\nToetUQzTgjleB4N3el3tQ4d+omGWJex7nk2BwFuNLJtFfKfK3VKU2hqXX8Yu\nFYL55Td7zIQ7kDmpRNCuSJOb6g1hg0qJW3lgBF0LHffOb8eSK3IRHOhegTEJ\n88qDPwG3ERf5fcUy3YArL8sBb9kioLUoMFrYd7oBh4P1lsQPhn0I24+iqZH9\n1fmhyCoS1evZ9Hba3b+cP5oKpW61ow22vDsiqkbMybN7dR9486KQsW5DLZ4Y\nRaaJryhKqu48IIm04BfrWAICg9qLsFYWZNyncxIalC3hNUiydhIJ8rBuoXZD\nRyKBayIF/2Go7Oe04GhSiBU623Z11g3axISEdBzRNm4nDZZpnAFGZio1Ypy6\n0lhjehMf+bt80/LovXAwhlJkGW7QtRuzL8R8IeTweSwu8nKTLbhxzEAjIDGO\npTf9+3L9vG7sDE4+8XHDK/WrYhKZilTllvCJurSjn5kJ/oNh1V4Os8jaNm+Q\n9D/FEHZEHC3GOp04IOUyWlbvDrMQonPr/3IVaBdgtu/jWUx0Uxklfdt/AL0A\nzZjXRcvjXs6Y2RqfyftciGslhVqsZcRXN7EWSqoPtThtLlZq4fd2Z7qjwKc9\nlqT0\r\n=A9zE\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":"f32065264a10db97a774571544554cc975aa0b6a","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.3.1","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.4.0","dependencies":{"pino":"^7.2.0","tslib":"^2.3.1","pino-pretty":"^7.2.0","@envelop/core":"^1.7.1","light-my-request":"^4.7.0","cross-undici-fetch":"^0.1.19","@graphql-tools/utils":"^8.6.0","@graphql-yoga/common":"0.3.0-canary-f320652.0","@graphql-yoga/subscription":"0.2.0-canary-f320652.0","@graphql-typed-document-node/core":"^3.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.2.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node_0.2.0-canary-f320652.0_1643278051945_0.004858376371340123","host":"s3://npm-registry-packages"},"_id":"@graphql-yoga/node@0.2.0-canary-f320652.0","version":"0.2.0-canary-f320652.0"}