{"name":"@graphql-yoga/node","version":"2.5.0-canary-9f60fc3.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.5.0-canary-9f60fc3.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":"9f60fc31ddb06699e08025de995e333734bab69b","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@2.5.0-canary-9f60fc3.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-1dq5H+Hx5llEqASit3KbDjT8rBQEMgAD5bnCx1fFFg/xjN3k/DbdwZnwPC3KGKxet2N+J0na2MOH3r7yAylVmg==","shasum":"6ea7c8fb6e03fbd502c10b6a71c79ae7c37d0ce1","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-2.5.0-canary-9f60fc3.0.tgz","fileCount":7,"unpackedSize":30075,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4/w78W+UaCq+5ZV8U2WL5IJWaeMrtcPvh5blqGqkXBAiEAt+ji3p7FMyqjQmBaL0U/W2AixGm3X5mhzgLBX3R8D64="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicBfiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8PRAAk4+irO8euTlKkUnb2KfdvbLlk9ryoz0CQBierfYQ+IUVJdwm\r\n+AyIR7PrOZcIBOAOyDdsGnqVdE3OouY+8C+s4C7Sc+B1ww7lsy2hCLtNrJ/9\r\nj3TTKD9oWo971CeMeqggZix4b2MaXWClUAp1AxVhXztKw1wD+gxLE30nCxH3\r\n6SPtgw5M/OPS6xyCcPIhsQrRTcoI982OVqh3DaCFSZe+aDNccU0S42vj+cxA\r\nGYibOiFacjL5Gal3y31vpmvW+0Jvvb+gDHkIn91xV2d/5G7iEyeXu4y56Pd3\r\n2k29sr+ZFFPZ7D4NWe1Y0Apz6HFCjh3l1Wsp00ac+tO3II7FwXxbP3E0lLpv\r\nl/BuSfnX8VuXI2UkEZMmTun5Uf+6evs+ZburH1IP7cMafWm5Cudb2MYljJ1s\r\nguw3RGYEeoE3ZB6iqjGMfC5uOzL0RviXZVNTjigvc3Kxt+DQuOFF35ZZLZ4o\r\ntEMYoIWhItx0jA383Dg8w4uG3WQwd95IozvKaXUYZs1lLQnNhT63RaxWr3/b\r\nvy2t33j1OJHjJtCArkN2BbZG3FqCWb3rPT12x6sLGTksJvjK5th0EAzMM+U0\r\n3jWjxngdEzsOofmDEltZznE+XkUiVj6l1FRLyrzHvPIzw8vY6BQw/ZW3yQe2\r\nFZvRlX8WAvPIk+4Y5rrwNikFbsbl+EzZZT8=\r\n=vzZB\r\n-----END PGP SIGNATURE-----\r\n","size":5290,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-2.5.0-canary-9f60fc3.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.5.0-canary-9f60fc3.0_1651513314597_0.6734810575575159"},"_hasShrinkwrap":false,"publish_time":1651513314761,"_cnpm_publish_time":1651513314761,"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"}}