{"name":"@graphql-yoga/node","version":"0.1.1-canary-c23292c.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":"0.2.0-canary-c23292c.0","@graphql-yoga/subscription":"0.0.1-beta.1","cross-undici-fetch":"^0.1.25","pino":"^7.2.0","pino-pretty":"^7.2.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":"c23292c075dcce97a7d177a7e9c9440dc25c4528","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@0.1.1-canary-c23292c.0","_nodeVersion":"17.7.1","_npmVersion":"8.5.2","dist":{"integrity":"sha512-xnbjrGMnjxVj80JT1wetEXhwORJk5Wv6hmtqydCtylYhaWDF+qs2RgLYbEjIi3apRTM/oviC+QUQ8xVmQCPCJA==","shasum":"7b2146f840ce0f79095afeccf306f4158b916992","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-0.1.1-canary-c23292c.0.tgz","fileCount":7,"unpackedSize":24561,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMdHSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhRQ/9EU/pGKP15HvIhf7z2RMgiZa7P6h/WWR8z0bWzAio5mBaQ8Zu\r\njJ/CirWhRRKSlLvYCqInyiiry67AsWkdUc4ZhrpBSG32xkhjY31/Xb8y0JQv\r\ny16CFAQXsVxmeF3ynp4lQj3sSJdENS7Dr5uY0eWoapR2Vt8PYdQVfea+VIps\r\ngt7a3TVjQNDJFCZsRX/4P+o5liNQhIsyjSq4r6IS21j9/yamT/YFuwpyqiS/\r\n/YuxQvLCxPonp2cTpm7rb5lqapspQLJC5L9+j7C5Ea0We/iK5SteYfeEdpr4\r\nuCbE6SXsKrUVVc0/C9gtMa3HDZtN657+2xmJgagwEyUTxvRC036I94ET6rHK\r\nAdD4bccfIdj7bC7x8K4yhPF2XQusbQWRofuGi4Qtm87fbnFoGk7AbOVo8R1r\r\nPo3FveQMqPqhocd24xU9jiZG+BuBb3cmCQRnhIV9Kfqi01tdENpUVLUxJIPi\r\nVzmwKl/lgjexcvSWS9ZZDK1d3oubPEYUpKW6p7O6NGE4IxrFlhx4EWmUZx8a\r\nEcoTQa6ByMJ7UsDUoNqA9YWoAYpqCQ6yHYhIsiwEmXl1bRxVeGgvDXhYtzHz\r\nm5Qqx1nQuX1u7tZztyXyAe268YAMyrU13iS2KbWWxewXIl/MQ5MSKWrifOr3\r\nduLy9yHr9vnZUJot2iM6PkLJHm/GgvY+b88=\r\n=U3pw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbo6FODuhzYdyOiJkjOdtDL2sL+t9oBMDe+vzemiYonAiBUsPNKPMBMn1mBE9h+FEMwjPFRnSkft4Q/iQYoXTfE1g=="}],"size":4779,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-0.1.1-canary-c23292c.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_0.1.1-canary-c23292c.0_1647432146410_0.7862809772025354"},"_hasShrinkwrap":false,"publish_time":1647432146575,"_cnpm_publish_time":1647432146575,"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"}}