{"bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"dist":{"shasum":"aad15ef910967e6b06fe61fa8ac8c09ebb7364ca","tarball":"https://registry.npmjs.org/@graphql-yoga/node/-/node-2.13.0-canary-cb85c57.0.tgz","fileCount":12,"integrity":"sha512-jLPqpPfrTOiyhBpTIzS3m/90vxd0VaM8Bg2lmuy0PwefvqPZRXOHnxT/ZKOn15NnR7+4rzQHql+Q+pybxMUW5Q==","signatures":[{"sig":"MEYCIQC+lcZxMOEyKk/pCtcP4ADJCw9OhuoC+yoOLQMxyd8qsQIhALZWlX4G/4VvgqUV4Rn5MOwDKfqt1/AqGAqtC2ii2q71","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyGGLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBug/9GXnGjP5bfWC5pYg9Cxn6JkkZsarV5q0WCtL9xblK3LS/dK0h\r\nH4k4lKTt+uwKQBPSTPkG33Z488xivXdImZTslGU/E8xpMU9Dt+eP2laHFt98\r\nZrvcGwQsMF6YWVHYNDEW6GvODlG86q75EzjIfDvGp+PSdXdDSqKhQguyKzsN\r\nPfxMQRfEmnlWiHG3mYUa5z/FPm5ajhKu9UpS2C4C2rifyajPDLjKRApCcBFS\r\ncI3UVlMmtLfvu72nNvJv7y24j0+mCHo7Qtwwf1MrmWYITGikQah/lkD23ghC\r\n4F7Og98TbLtt22J4j+sO8ZkR/H/baop6xtjz8eQVcexK5LoycVxavgIPgCA5\r\nmuxMC9Tmw+qFEKsFtnFQK1sahlOWlSXWOck17sal3fhwksIcrMswR04EgcRR\r\nR04sgbmu4XNJoyER7pYdHTq8XWHcHpfAxQxl7RKxWrnu/0urKpfcG0n0DZX/\r\nAYaRbytUVZQxYddZihb882Oie0q5f+G5u81ojmOdErjHts9X80M5z9gtbHeP\r\nLoJrj2bmsA5WCPxdOIu7vf4CMB3WSSFn/fXtWUqFJli/e4J8aiYBLPDkyznm\r\n4PfGzSyni5E2l2Zl7EUpdSupi56/UgqLb8Fo6c7NsQWY0E13ii4wpGNPqnwP\r\nEmIO0w075DQ2Cj39Xs+QCQy8HJiNKNa4bLg=\r\n=eH6d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cjs/index.js","name":"@graphql-yoga/node","type":"module","author":{"url":"https://saihaj.dev/","name":"Saihajpreet Singh","email":"saihajpreet.singh@gmail.com"},"module":"esm/index.js","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":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"require":{"types":"./typings/index.d.ts","default":"./cjs/index.js"}},"./*":{"import":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"default":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"require":{"types":"./typings/*.d.ts","default":"./cjs/*.js"}},"./package.json":"./package.json"},"gitHead":"cb85c5791ce5afe28d84106863bc40828881d2c7","license":"MIT","typings":"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":"typings/index.d.ts"},"_npmVersion":"8.12.1","description":"```js const { GraphQLSchema, GraphQLObjectType, GraphQLString } = require('graphql') const { createServer } = require('@graphql-yoga/node')","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"}],"_nodeVersion":"18.5.0","dependencies":{"tslib":"^2.3.1","@envelop/core":"^2.4.0","cross-undici-fetch":"^0.4.2","@graphql-tools/utils":"^8.8.0","@graphql-yoga/common":"2.12.0-canary-cb85c57.0","@graphql-yoga/subscription":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.2.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node_2.13.0-canary-cb85c57.0_1657299339596_0.29156098319297574","host":"s3://npm-registry-packages"},"_id":"@graphql-yoga/node@2.13.0-canary-cb85c57.0","version":"2.13.0-canary-cb85c57.0"}