{"name":"@graphql-yoga/node","version":"0.1.1-canary-ccdb20c.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.1.0-beta.8","@graphql-yoga/subscription":"0.0.1-beta.1","cross-undici-fetch":"^0.1.25","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":"ccdb20c7addac1442e33204ddf968790a2a6fda1","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-ccdb20c.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-HR4bdoAfURRdpQfwymEAv5xR3rUyxCOvNrC3nDXZ/y3gk92t+o8RcVZzi+1gtevOhrgRmb/M26X03O3OheOarQ==","shasum":"dcca751f7c5a87497d2bf65a6e64ec87016940ed","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-0.1.1-canary-ccdb20c.0.tgz","fileCount":7,"unpackedSize":29954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQd2YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFPQ//V0Zu0aH7m5LVjxKEUg4vfwI6rw9Jj+G+yriW8oZhCErFxo7Y\r\nqHUaXnB5F1l6x1NefuIZLTH/WZJWQd7NAu/qieyQM5BbylbJPcuNRbGwubAh\r\njdYec12x/NUOSM3l+Av64SCQu/RbmGYNahV9BkQxW2hbvPMmBNLxhY5UAUzb\r\nAJhqF+zxa10Qbhp9uyf85L53f5KVsGaIvWHXL2eehthn/S0r258qlzhYvTCO\r\nADjLkyE7bwmB7SKAz2QCDk+AXG9s8rBxpdM2SjwVS8HvYHzau0F7Owc+3+RW\r\nrNZAB5N564sDR/so6x/aC5EPL4Jf2HdrfmioMVum0luXRUju0uIEw7YiKj3q\r\nwqdFw7W2Zrk+tWE6FbcTAwbE1p9xIUqPRV3tuDcZB92pHx9sU2GB7RYVSSz9\r\njwJnGu6vFfk4kMZD+ZmzIDKhwMeEGp10wPbxtaSdoc3+VR5timIJjqgr4efS\r\nBcNebRLG/0tphfyHv4W3jH4TsHd6FwLMv5FORkQ7VFyBiNOe2XvUp/jpIZp/\r\ng82lQH9SEXkW+BiMaKr2KkJcUZPGdTVoqsNQ1yy9wqwPwtfqPIctTn+T3XYe\r\nS9hgDAdW8EQvI7K1TyoYq7zdI+fNbOF/aat1TmMuM0ZnhW8zBQn+OVOtsNXn\r\nS5lWs1PWJ3veOuGiy/iM6eBgI2+usBZzbOo=\r\n=X37N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDILUH8DlMJ0y1Ylg04uKWp/QxeTi8QpFiFJ8jZCit3FgIgV9LkdR5gbeBd6niy8+h5NClgEdaA078xdUeGf0ZKN7E="}],"size":5091,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-0.1.1-canary-ccdb20c.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-ccdb20c.0_1648483736141_0.279484765850315"},"_hasShrinkwrap":false,"publish_time":1648483736325,"_cnpm_publish_time":1648483736325,"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"}}