{"name":"@graphql-yoga/node","version":"2.10.1-canary-471db46.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.4.0","@graphql-tools/utils":"^8.8.0","@graphql-yoga/common":"2.9.1-canary-471db46.0","@graphql-yoga/subscription":"^2.1.0","cross-undici-fetch":"^0.4.2","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.ts","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.ts","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":"471db461ceb3cd056ecc7942a0a508979c087b30","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@2.10.1-canary-471db46.0","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"integrity":"sha512-cIvk5aRmi8yBSXyL9s66kbMg7cpEP2bmeyPGyphmmQ1u75PAYqysxcIakPlCEJynPucJAfGpGg0xumEQilfszA==","shasum":"5169462bea8220f6b7f79e8e7c123a1a5fc84b86","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-2.10.1-canary-471db46.0.tgz","fileCount":12,"unpackedSize":31899,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChaduY5EucO3iKIHw8PnNIPt9dPSJFK+ooUztoLuJ5iwIhAJBlf0FNs0l1t3soOPipsA+jASLiGaGk/kLZnS8HHyQ1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuyVGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/eA/+PnLrwGQ/GIhsbNK33Et4tA0b3KCWfrELRANqdyRaoUaJsDbZ\r\njLEHTOSmt6gsBB7VlaJguOSrOfCRxuNrB99ZeELjVdHektCpKUY8EPEYcgDO\r\nvc7/NjCOe2vZETsLhOVXUJ67Ikpqdv0zQRKcgkhzgljkBlZD6iwLHIuEHrF0\r\nSjTPXv0ByxhI3CEHyfF9yvquhxtNTz4BMuYnPc26HdT5t05Vc/syjZKd0Lui\r\n+k3MEqBG1Ix6K9rxU2qj1TZ2sMG3AMjl8T+kybjU7G+SXyYHm4NKq3140aNl\r\nrfGymaxbGLlm4VhuMdsUZnt00lEjBIBEqF5nB4D4LtjjTf0XUFFUGU7X6wp3\r\nTZRH+XmZRtJrpqxpe+qliFue3vhNbhIJyfA/EAwCLzljhLjw8JWw8kWJSGa6\r\nKM8af2ph1D9TFNX4gtbnq9zo1SHqipBTu3Zdmqn9zy2URQYlk6dKT49WsGmo\r\nAKm1OshEGdg9j/R3fkEvM5LuAjqztwolPsV1HP2CqyQUuwpKgyESRW8LKOhH\r\nLaI9EC5Bn5EXn1pJ1ft9MPaope2EC0bgBU8aVNGnVXUSt02yv9/d4SYNB1q/\r\n3uujdt3xOu5DrMQWon1J7EVPU3hs9v6QcDN544ck9l/y5U/apqZEY49pJCV7\r\nLAtAn2WH4bdmX2CerEhTAJt3caMlokS989k=\r\n=uZx8\r\n-----END PGP SIGNATURE-----\r\n","size":5736,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-2.10.1-canary-471db46.0.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.10.1-canary-471db46.0_1656431942701_0.3432842127201641"},"_hasShrinkwrap":false,"publish_time":1656431942916,"_cnpm_publish_time":1656431942916,"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"}}