{"name":"@graphql-yoga/node","version":"0.2.0-canary-dd2e8bf.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-dd2e8bf.0","@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":"dd2e8bfdd797bceb9b260b7f20a596175d41573b","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"homepage":"https://github.com/dotansimha/graphql-yoga#readme","_id":"@graphql-yoga/node@0.2.0-canary-dd2e8bf.0","_nodeVersion":"17.7.2","_npmVersion":"8.5.2","dist":{"integrity":"sha512-sNkY2OlwpC6hYRRi2RTUFX90lo4O6m34eFTOD0g02pILlyj3y+0wqrEtz22zDk/gVAw9gcXXyYSMPDKMazCAyA==","shasum":"ea3d3cbf64410cf5513ba94e534423bb1fbe2fae","tarball":"http://registry-npm.ywwl.com/@graphql-yoga/node/download/@graphql-yoga/node-0.2.0-canary-dd2e8bf.0.tgz","fileCount":7,"unpackedSize":21611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOcfrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHRhAAgqGZcp+Fg2HRXzqVUaQCYOyPE+aXgcQF8byUjxv15SZVHcVb\r\nsIjsldgjd+0hr1tzgvwmOAugnJqa0+GcEOQ0XLrcFADcUIk76c2Uv3grA67Y\r\nCSRKyH94ckH99VYAHX5LEPO/Tv9mJokcw+jN4ku1L6L8c8VnbSrgQyrx7Y2K\r\ngU0cqdSnY40khw2ii9TmiHIKHWh7DwgbjZei4oDemEQjNfLa5uZQZnhvKTFy\r\nGYyYWgOgQ8rrmwcDTqPgNDvslnHmyPxOU1aOaLsw1lC3IxFof7HVWJzew7Dx\r\nEeYm6A3hRpyEasFkTD/XIICc4eR7RL+CSoegn+dDmbMHhiHRaC/+P1EctRU0\r\nQjA2R3FwGKgEJ5sPp0HSwULg788vHp7JVCBOaHzK5Yqw3Uh30Z4Eknq/j4VO\r\n0rsK9W+eDBJkw7X+jX1nTo+/F1Gtpj1D7kIxY/WXjk0OnofaQEh1fAmkqjLE\r\nRSxXGBNQqyhdgzMQD7bq8JkmgxD+MplhVymObYboaUuGMkSnyrqXmjiIvsvw\r\nlV42gnZw7HFB16eXyJSD2xGsaq/5ODxBvNgLsRn60XfL0Ok0P8bYBRC12Zdv\r\nqE1f/xeeW3Yzx2S+dfP5xd9ubHwr+utHWjCw2eWAnVpxzDK4sQAKtcqtQ1jq\r\nEyVMxM9qmOExFRxVZ4hCUkngUE+LR13Q1C4=\r\n=0Lr1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKzJMKsgQkJCyWjHQIl0se+XZof+v9O7/w3dsqnpCOaAiEA7nLILYXAAitr+1AxERkvTZLWe4aVOXre6pUGgHgGY8w="}],"size":4210,"noattachment":false,"key":"/@graphql-yoga/node/-/@graphql-yoga/node-0.2.0-canary-dd2e8bf.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.2.0-canary-dd2e8bf.0_1647953899059_0.20987722793722385"},"_hasShrinkwrap":false,"publish_time":1647953899200,"_cnpm_publish_time":1647953899200,"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"}}