{"name":"@graphql-yoga/node","version":"2.4.0-canary-766e002.0","description":"```js const { GraphQLSchema, GraphQLObjectType, GraphQLString } = require('graphql') const { createServer } = require('@graphql-yoga/node')","peerDependencies":{"graphql":"^15.2.0 || ^16.0.0"},"dependencies":{"@envelop/core":"^2.0.0","@graphql-tools/utils":"^8.6.0","@graphql-yoga/common":"2.3.0","@graphql-yoga/subscription":"2.0.0","cross-undici-fetch":"^0.3.0","tslib":"^2.3.1"},"repository":{"type":"git","url":"git+https://github.com/dotansimha/graphql-yoga.git","directory":"packages/node"},"keywords":["graphql","server","api","graphql-server"],"author":{"name":"Saihajpreet Singh","email":"saihajpreet.singh@gmail.com","url":"https://saihaj.dev/"},"license":"MIT","main":"index.js","module":"index.mjs","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"exports":{".":{"require":"./index.js","import":"./index.mjs"},"./*":{"require":"./*.js","import":"./*.mjs"},"./package.json":"./package.json"},"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","readmeFilename":"README.md","gitHead":"766e00232023fd5ea02cea487e39f5d7cb040a21","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@2.4.0-canary-766e002.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-OZWVPbS53hRJj06+MgoGNtD5iQy82qhHRZQS8slhAmknHq27M6ebu045Lbmq75Se066UCrS3/091ipsfq+f4qQ==","shasum":"c4e81556ea45ea79076e6245aedd3ccb0426ec3b","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-2.4.0-canary-766e002.0.tgz","fileCount":7,"unpackedSize":30148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZksYKIsovG8Y6wpNbIb2lNAWx7su2FZtVpQbqHqmQTQIgHZ7WPQCedlpIq0FtaYEnXUkgynRvNlfdtXRhewETJ5s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiX9ElACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooIQ//XrNZSW0W6TQOxqApihrjj5ttJKxv72vPVAeAebNA7aBs/sMx\r\ndqMNfIzP7HXHM3diN5GFTJVb/K4/c89JNJFga/sBujbsOSpI/qd1AqipGaVo\r\n8aG/kQaxi4a3J9lArW7KS1q/PKaZ+1o8wa4aLnxoBXEE7cklw8SEhlaoVb4C\r\nxSIKZArLZjRRfMMaXbO+4YJJKCt1vo81wD1Y8N8JBg+703RTGMR1YjpkP6Ba\r\nkKGIKmeOY2aWJyWx4Xm3XsrOcFEraQiddQ8vBbXuQOYN1RxhTGeFbwATNBU8\r\npWw0agxzZCybBKPR76cA0gw4cALDcXyHhhVdwt3yuBwy+/ERUYR9RlxRfKaY\r\nbHVFJxfzbdMpuXmw3mz2MkSng7ykjofGDb8bCbFvZDhdQDSMNutEIfzDfyUf\r\nPGGbWGCuP9bPqmVZSBKlXl0peocdac05vLS3bLqzspXLcb979y+PMmAsGwIo\r\nKaFJkZyeKiTSC79wM/spDqos3x9KHV6kTKlFXdw/IvuhPqkchRHJ5gBQ7Xbq\r\n+de5DJgiA7DjajxHv4HDHQ9mp7S4Le0KIdjwr5Js5PQ68Wed7qjvQEOns/mg\r\ni62i+9eqMN1aY+iflEu26QCsfdFn30MZVKzeSkOyXP8GdjZAiktSpz+Er5Z6\r\nP9TI7JZ8HImnAy37IyXwapIm+18UHzvWi/M=\r\n=33T7\r\n-----END PGP SIGNATURE-----\r\n","size":5284,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-2.4.0-canary-766e002.0.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"urigo","email":"uri.goldshtein@gmail.com"},{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node_2.4.0-canary-766e002.0_1650446629064_0.4457540975988996"},"_hasShrinkwrap":false,"publish_time":1650446629233,"_cnpm_publish_time":1650446629233,"dist-tags":{"alpha":"4.0.0-alpha-20230524220104-1dff0f25","beta":"0.1.0-beta.8","canary":"2.13.7-canary-4a8cc11.0","latest":"3.9.1","rc":"4.0.0-rc-20230524220214-1dff0f25","three":"3.0.0-next.12"}}