{"name":"@graphql-yoga/node","version":"2.3.0-canary-d755f7f.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.3.0-canary-d755f7f.0","@graphql-yoga/subscription":"2.0.0","cross-undici-fetch":"^0.2.5","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":"d755f7f53271dcc78304ef7042fb46278e9ddf35","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@2.3.0-canary-d755f7f.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-+S7Eabo1YJbfT41WpmJmgEAKAHg7FKD5hTv5oVMpDhtxXtlaRS03xY4Z3vN34hfMIUk8vC7O3Fzk7ghctU7zZQ==","shasum":"2cf3159437784518a4ea814875dec7349e52776b","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-2.3.0-canary-d755f7f.0.tgz","fileCount":7,"unpackedSize":29043,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTYolL8IHuNJWidRVXHv3CmHhCPAgL7Tf+hb9IupjAowIhAO+OEywgY4+bGSp26r8S6FXA0KW4kuQxHO4rHvG6tK4Q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVkH2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoY3w/8CCPZEjk9NGcieBMMGZpiGf0vlZx2xhBasCtwbJptMgXojQml\r\nxg/PGRpZxNhSYrb1OJ9QTfR6TyhDLnvoU7gwfIq3qcfwbrkmn2qg26Hnn2XV\r\n264v4He4G1N4fcYEtQFY2lQe6c4vRcDTtTlFPtuCtRSC4WXl3nzbYCEGawd2\r\nwt1TqUSKwHQQQxk35KktW141JZBd1T8/9w/qjlAOpAotj2iGms9dt5OS3tnO\r\nxaE32TfApV6yelVSRdIpCU1JFx+VuRfQOUznFuOZ7NbgoT2fLEXhgLvpY4A3\r\nxfVT7SF7npl6FwcWhiYBGAcWn3TzE2mN+IKqcpByghunj31xMLosRXASYjUZ\r\nxWd6xByVoEVtgmp4jQ91dv8F8sMl0VC/VBsb1sG1VH0aZpgBzL9zDRq1TIeE\r\nk0Kk0ewe7e0zzTpkWr4W7p745zQYplaaZ5PtiH3/1jkg8sjBukZgKKuNGXcJ\r\nbC4GWWQ70mh8DrcdGWxVAd3Pv4BM3kEatGcoQ4Tbiic9vbeUEI+GlOQBXZ1A\r\naQQYasUhLMlnHvK74sLNuAyu7k63JVtHMXOytjeig9yIYgKRxsRjrV1tRDkO\r\n7jcH2umaO5RKdhze2WW+6Yslz+90Dg/35BiCLR+hg0KbF4O2Db0GCpdh18ZY\r\nKN8T6y2ob5EIJ4aTIDQ7nPBR0T0cvTRshbc=\r\n=DFiH\r\n-----END PGP SIGNATURE-----\r\n","size":5098,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-2.3.0-canary-d755f7f.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.3.0-canary-d755f7f.0_1649820150644_0.3092566109347523"},"_hasShrinkwrap":false,"publish_time":1649820150821,"_cnpm_publish_time":1649820150821,"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"}}