{"bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"dist":{"shasum":"17fba141b368278df2c84b19d506d31b1d02097d","tarball":"https://registry.npmjs.org/@graphql-yoga/node/-/node-2.13.5-canary-76a6278.0.tgz","fileCount":12,"integrity":"sha512-jSyjfBYjbkNYc+gBXmq/xqpv6U1Buq9G1KgpZvKxifWqD1rDoCaH/VTX8sTOyrLoQdRAQ47IuzwUMB1zXZRU3Q==","signatures":[{"sig":"MEYCIQCVdUOtdUbk36PLMA8v2B3soGd9SAlSeZdcqJHJDeoAIgIhAINtnZm0PV0ElFgmld/SouETQZslGcq6H5rbEDRPxDzR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4s4hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXyBAAhx9KOclzTIb/5no7DtaPnP9o2FWi58KOc78EXG0rfWXlAaiO\r\nhFQPSwkdVJyMc8xNdMvVthYBJoRaecyK5ZqpA/piLLJOVV+e4Gc+5NPG5hiT\r\nwrmrdD0f1GABvzoGYJ2YEwoeTW+TBjHWlhcU47Y+W6SIbRcZrchdrH+Ey6Mz\r\ngwL1qHrTUTYRqzXjf47OMA7nwF2LH71p4DFIxLRd3X6r5QASOR8iOtXz2wOu\r\nA4FQTwrwq6TQaSoKA9G2YCKvzxtp7EDo5y7q2u+Z337bYz+UMx10FXrUJm0S\r\nYZTTR2oWHqoOy4tEJerKmSBswK8/F1rZNxAUrG8FSH2di46KBQZbKcXEH6QF\r\nedDHRf3Pv1J2Jv6sI3biNrfZLFCWR3w0D1J1xs/MI08OB7tlEa2hmCZVhuFK\r\nfiVsqG2wtHMztevrZ/ULtT71j+2eGSBvSTHTuknPYR83GsWS64IWQs2pQQin\r\n4w1WqkG5YTJBH2yjkHev+064MpRaj0qlsbrplDyLm5vP80+jxG2KMkPkS7UX\r\n5MOViQEhhZJdY+Yw3mOcEHdPoR9TVxRiB1QkJBnI1mJ6ffh81gsA6VKGLWLl\r\nlfOGk9uDnJB0+2+WjF6N/XhHcHxLb6IBcimau3qgzhEm4/ZO4piVaGiwidM8\r\nNzrWxse9CX/DYz9ARvg+WJ/8pzN8E8t6c3g=\r\n=k5AK\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":"76a627851808b4b7baac8195c20ad1fa222b2a6b","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.15.0","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.7.0","dependencies":{"tslib":"^2.3.1","@envelop/core":"^2.4.0","@whatwg-node/fetch":"^0.2.6","@graphql-tools/utils":"^8.8.0","@graphql-yoga/common":"2.12.4-canary-76a6278.0","@graphql-yoga/subscription":"^2.2.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.2.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/node_2.13.5-canary-76a6278.0_1659031073498_0.8191248264130995","host":"s3://npm-registry-packages"},"_id":"@graphql-yoga/node@2.13.5-canary-76a6278.0","version":"2.13.5-canary-76a6278.0"}