{"name":"@graphql-yoga/node","version":"2.13.8-alpha-20220819112402-18bb7ed","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.5.0","@graphql-tools/utils":"^8.8.0","@graphql-yoga/common":"2.12.7-alpha-20220819112402-18bb7ed","@graphql-yoga/subscription":"^2.2.3","@whatwg-node/fetch":"^0.2.6","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":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./*":{"require":{"types":"./typings/*.d.cts","default":"./cjs/*.js"},"import":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"default":{"types":"./typings/*.d.ts","default":"./esm/*.js"}},"./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":"18bb7ed3a217ac9e67c2e6cbdd21811244960b64","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@2.13.8-alpha-20220819112402-18bb7ed","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-JTk7PEF3xDS3XFG1Cc9vl+hV8X2Dh/mAMiRxRcQIKsDzsGymXh9v1BcDAE37o3V9uzm+xseXsz3r9UNZE//Tcw==","shasum":"b9548a089914e4920c4767ecbc4b6a79fb457282","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-2.13.8-alpha-20220819112402-18bb7ed.tgz","fileCount":15,"unpackedSize":36382,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbEWLun6rxXtnMyF5Li+5YZrPLPAMMOMrogg+kRpjMqAIhANBszR+qOD4JyH+z/gCWrX/CR1W9H0uim9A3Mn5ZUuSJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/3LxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAgA/+IJJhsCls8wPKLxpQ1yushte7QSpRI/HgWGnskB99i9H+N8aC\r\nAfp1t7ROFrkD3yVLQ++xZ09Je7z0tkbvA/s9nNtn+D138N7ti9Yw4AC7U6yq\r\nU6vhLNptXw0cw9ONuAN0LOnjhd4+qCENyEpIjlRooHB2C4A0ssstWzCjJKjR\r\n0h+SzBkON2kxZN138Qnb+iEli5rzw74QmgEWFgdzZepEInI4oVR2h5FtKywP\r\n//cm4bb7M62MtSzorFTNM/cnP6BMAdMX/0/B5vq5mgSvYdxkkoYEqmOTXbPB\r\nrdGdqfVHRH1pH91m2lSF35slUuhMX0VXyyoaWHZryB9TVtsKiSuQ5YGQTKpS\r\nRafD+ObcST1emWDeVLdmRC3le7mLBOQJbToqFljqMrV5MfseQ8TauOpYytoa\r\nfe2BlwRynGQ9ww8bIo9V7DJLTUiqMaLy4/A+EReW0w9uJQ3BxiIBfEk0HUoN\r\nUR93jJLxBJRxoyzh6LKmPnRpbAl1m2gFfsfWqUQsAsVCouYuguZDDXorndM+\r\nNr/C+pzuyLw+hYsNY8EFI+g6sw76C3UE+7im992iYCZKlu1HCDBGLTfbsPCP\r\nXYCcek28XT31QJEgJtngQc/lFDoiKXFKDJCknkhVZnGqzVMovAj7mBMP/aeR\r\nJOg09quQRAWE+5Symk/gfWCYoyl/3vUr1jI=\r\n=JiSI\r\n-----END PGP SIGNATURE-----\r\n","size":6606,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-2.13.8-alpha-20220819112402-18bb7ed.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"wittydeveloper","email":"cpoly55@gmail.com"},{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},{"name":"urigo","email":"uri.goldshtein@gmail.com"},{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node_2.13.8-alpha-20220819112402-18bb7ed_1660908273401_0.9969620542340443"},"_hasShrinkwrap":false,"publish_time":1660908273572,"_cnpm_publish_time":1660908273572,"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"}}