{"name":"graphql","version":"17.0.0-alpha.2.canary.pr.3754.1564174b0dc26e0adf7ff2833716d06606b06a20","keywords":["graphql","graphql-js"],"license":"MIT","_id":"graphql@17.0.0-alpha.2.canary.pr.3754.1564174b0dc26e0adf7ff2833716d06606b06a20","maintainers":[{"name":"leebyron","email":"lee@leebyron.com"},{"name":"i1g","email":"ivan.goncharov.ua@gmail.com"},{"name":"wincent","email":"greg@hurrell.net"},{"name":"josephsavona","email":"joesavona@fb.com"},{"name":"kassens","email":"jkassens@fb.com"},{"name":"asiandrummer","email":"asiandrummer@gmail.com"},{"name":"mjmahone","email":"mahoney.mattj@gmail.com"}],"homepage":"https://github.com/graphql/graphql-js","bugs":{"url":"https://github.com/graphql/graphql-js/issues"},"dist":{"shasum":"62ceafcaa683201ca4c6b75e4cb1ff1dd24f34a8","tarball":"http://registry-npm.ywwl.com/graphql/download/graphql-17.0.0-alpha.2.canary.pr.3754.1564174b0dc26e0adf7ff2833716d06606b06a20.tgz","fileCount":397,"integrity":"sha512-Xw86kx/yvn9G+F7Ti4ZP51M45NnSMbcTSSdCZ5fYbCgWCKq7OjTNfNq6O/lAl8IwWelcot/dO1yzscdsiSW5bg==","signatures":[{"sig":"MEUCIEQFp3D1091q8pLL50Yc8rUYQFF8omVh+fHGo9pu1nSxAiEA9BRMRRPhF7NBLO6g+lE3gXWJo6KVV64VuokSePscxjU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1374048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqsadACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5DQ/+KzQoHrrnjY244UtO2QWbK1rvn3MO7M0Yc+ViigZJxIdxBqxR\r\nMVR7lKovXSQnnlZBMiTj928owhqNALeKRgpc9qOs7LghjMJOb6V52d74yQFj\r\n7c1wsuPoDDqAPuADObhoZECPkBcjYWimG02Pm04AIOG3YVZpVGFmtBmf08O/\r\nFomwAbImA/kELZVuQFvFCo2xlJqWwgkXCPXnwKQG95Ws+k49llCJQ6mM9qLc\r\np3JGwKKXUc13daEaeDqo9AqaDTSYPNqrghkolm7P7N/yyLqryreahU59Tqb3\r\nYETzUDjXEMTDEFVgZkgbJmtY0m+VZT1Xqg/K0Ggs8ZTu9VAprjz5SW4F2toy\r\nViEwS+YPLH/c7+OFLhBQF/vBhOLD/ZVXKGFDJ5grjZguTvK4Hws8zYAM4GCh\r\nYYnFeGC1880+zE/0f4JQDLIfKkd+oMEIU5xALfvDeFeDkU0MRAMAuodzB7Ke\r\nrwBzePv2wgOQA4QDej3CKQy+IkMd/v1ILi8qoQdCHNbB3JHwvSRblArzIid7\r\nTzwF8oRUTgoBosrpz7wo5IxOvBu+sebkjJVNidz4md23iSPF6Cf85c5Mv6EX\r\n0hG66dUP2E3uIp65Ny30Di7n8IQZRjfigz2pYlPxRxhyPURfm6pKcFX4R+tq\r\nGZ5A1yGl58sX6Du3HRS6lgD+dtb3Pc4ArKk=\r\n=ZEoJ\r\n-----END PGP SIGNATURE-----\r\n","size":282713,"noattachment":false,"key":"/graphql/-/graphql-17.0.0-alpha.2.canary.pr.3754.1564174b0dc26e0adf7ff2833716d06606b06a20.tgz"},"main":"index","types":"./index.d.ts","module":"index.mjs","readme":"# GraphQL.js\n\nThe JavaScript reference implementation for GraphQL, a query language for APIs created by Facebook.\n\n[![npm version](https://badge.fury.io/js/graphql.svg)](https://badge.fury.io/js/graphql)\n[![Build Status](https://github.com/graphql/graphql-js/workflows/CI/badge.svg?branch=main)](https://github.com/graphql/graphql-js/actions?query=branch%3Amain)\n\nSee more complete documentation at https://graphql.org/ and\nhttps://graphql.org/graphql-js/.\n\nLooking for help? Find resources [from the community](https://graphql.org/community/).\n\n## Getting Started\n\nA general overview of GraphQL is available in the\n[README](https://github.com/graphql/graphql-spec/blob/main/README.md) for the\n[Specification for GraphQL](https://github.com/graphql/graphql-spec). That overview\ndescribes a simple set of GraphQL examples that exist as [tests](src/__tests__)\nin this repository. A good way to get started with this repository is to walk\nthrough that README and the corresponding tests in parallel.\n\n### Using GraphQL.js\n\nInstall GraphQL.js from npm\n\nWith npm:\n\n```sh\nnpm install --save graphql\n```\n\nor using yarn:\n\n```sh\nyarn add graphql\n```\n\nGraphQL.js provides two important capabilities: building a type schema and\nserving queries against that type schema.\n\nFirst, build a GraphQL type schema which maps to your codebase.\n\n```js\nimport {\n  graphql,\n  GraphQLSchema,\n  GraphQLObjectType,\n  GraphQLString,\n} from 'graphql';\n\nvar schema = new GraphQLSchema({\n  query: new GraphQLObjectType({\n    name: 'RootQueryType',\n    fields: {\n      hello: {\n        type: GraphQLString,\n        resolve() {\n          return 'world';\n        },\n      },\n    },\n  }),\n});\n```\n\nThis defines a simple schema, with one type and one field, that resolves\nto a fixed value. The `resolve` function can return a value, a promise,\nor an array of promises. A more complex example is included in the top-level [tests](src/__tests__) directory.\n\nThen, serve the result of a query against that type schema.\n\n```js\nvar source = '{ hello }';\n\ngraphql({ schema, source }).then((result) => {\n  // Prints\n  // {\n  //   data: { hello: \"world\" }\n  // }\n  console.log(result);\n});\n```\n\nThis runs a query fetching the one field defined. The `graphql` function will\nfirst ensure the query is syntactically and semantically valid before executing\nit, reporting errors otherwise.\n\n```js\nvar source = '{ BoyHowdy }';\n\ngraphql({ schema, source }).then((result) => {\n  // Prints\n  // {\n  //   errors: [\n  //     { message: 'Cannot query field BoyHowdy on RootQueryType',\n  //       locations: [ { line: 1, column: 3 } ] }\n  //   ]\n  // }\n  console.log(result);\n});\n```\n\n**Note**: Please don't forget to set `NODE_ENV=production` if you are running a production server. It will disable some checks that can be useful during development but will significantly improve performance.\n\n### Want to ride the bleeding edge?\n\nThe `npm` branch in this repository is automatically maintained to be the last\ncommit to `main` to pass all tests, in the same form found on npm. It is\nrecommended to use builds deployed to npm for many reasons, but if you want to use\nthe latest not-yet-released version of graphql-js, you can do so by depending\ndirectly on this branch:\n\n```\nnpm install graphql@git://github.com/graphql/graphql-js.git#npm\n```\n\n### Using in a Browser\n\nGraphQL.js is a general-purpose library and can be used both in a Node server\nand in the browser. As an example, the [GraphiQL](https://github.com/graphql/graphiql/)\ntool is built with GraphQL.js!\n\nBuilding a project using GraphQL.js with [webpack](https://webpack.js.org) or\n[rollup](https://github.com/rollup/rollup) should just work and only include\nthe portions of the library you use. This works because GraphQL.js is distributed\nwith both CommonJS (`require()`) and ESModule (`import`) files. Ensure that any\ncustom build configurations look for `.mjs` files!\n\n### Contributing\n\nWe actively welcome pull requests. Learn how to [contribute](./.github/CONTRIBUTING.md).\n\nThis repository is managed by EasyCLA. Project participants must sign the free ([GraphQL Specification Membership agreement](https://preview-spec-membership.graphql.org) before making a contribution. You only need to do this one time, and it can be signed by [individual contributors](http://individual-spec-membership.graphql.org/) or their [employers](http://corporate-spec-membership.graphql.org/).\n\nTo initiate the signature process please open a PR against this repo. The EasyCLA bot will block the merge if we still need a membership agreement from you.\n\nYou can find [detailed information here](https://github.com/graphql/graphql-wg/tree/main/membership). If you have issues, please email [operations@graphql.org](mailto:operations@graphql.org).\n\nIf your company benefits from GraphQL and you would like to provide essential financial support for the systems and people that power our community, please also consider membership in the [GraphQL Foundation](https://foundation.graphql.org/join).\n\n### Changelog\n\nChanges are tracked as [GitHub releases](https://github.com/graphql/graphql-js/releases).\n\n### License\n\nGraphQL.js is [MIT-licensed](./LICENSE).\n","engines":{"node":"^14.19.0 || ^16.10.0 || >=18.0.0"},"gitHead":"1bf71eeec71d26b532a3722c54d0552ec1706af5","_npmUser":{"name":"i1g","email":"ivan.goncharov.ua@gmail.com"},"deprecated":"You are using canary version build from https://github.com/graphql/graphql-js/pull/3754, no gurantees provided so please use your own discretion.","repository":{"url":"git+https://github.com/graphql/graphql-js.git","type":"git"},"_npmVersion":"8.19.2","description":"A Query Language and Runtime which can target any service.","directories":{},"sideEffects":false,"_nodeVersion":"18.12.1","publishConfig":{"tag":"canary-pr-3754"},"typesVersions":{"*":{"*":["NotSupportedTSVersion.d.ts"]},">=4.4.0":{"*":["*"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/graphql_17.0.0-alpha.2.canary.pr.3754.1564174b0dc26e0adf7ff2833716d06606b06a20_1672136349046_0.2760127324196904","host":"s3://npm-registry-packages"},"publish_time":1672136349260,"_cnpm_publish_time":1672136349260,"dist-tags":{"15.x.x":"15.10.2","alpha":"17.0.0-alpha.14","beta":"17.0.0-beta.2","canary-pr-2757":"16.3.0-canary.pr.2757.7e793c133f5b9c47a1b12e98ea3a35b1b1471dc4","canary-pr-2839":"17.0.0-alpha.1.canary.pr.2839.db4d0cdea30214fb7bb00724b7827708ca5de8a5","canary-pr-3134":"16.3.0-canary.pr.3134.aaacb12ce929a1f2899503018cc6d39a2f83ae28","canary-pr-3361":"17.0.0-alpha.1.canary.pr.3361.04ab27334641e170ce0e05bc927b972991953882","canary-pr-3418":"16.3.0-canary.pr.3418.662180be9091ee1edf699b4cf4922bd5b7705297","canary-pr-3465":"16.3.0-canary.pr.3465.6c6701425310ce7f866ce71628bdf9443ae0f0af","canary-pr-3469":"16.3.0-canary.pr.3469.8212fa925aa1a32715752030913a6e296e8c0fd3","canary-pr-3479":"16.3.0-canary.pr.3479.undefined","canary-pr-3480":"16.3.0-canary.pr.3480.undefined","canary-pr-3481":"16.3.0-canary.pr.3481.undefined","canary-pr-3482":"16.3.0-canary.pr.3482.6f2ec221eab5916d6d7bbfc6167256477bd35c45","canary-pr-3483":"16.3.0-canary.pr.3483.undefined","canary-pr-3484":"16.3.0-canary.pr.3484.b6999ce061b975f1c6c99c790782323b91c5eb21","canary-pr-3485":"16.3.0-canary.pr.3485.3c71ef7dd720383cba84a1637665fc18001c4f32","canary-pr-3486":"16.3.0-canary.pr.3486.c8ac9896696f401b9efffa1806443732cb0a010d","canary-pr-3487":"16.3.0-canary.pr.3487.a0dcf0130ae81994df47049c9233df11516abfcd","canary-pr-3488":"16.3.0-canary.pr.3488.9f7ad13c9ae7289c4d425698bd040d36978ff81a","canary-pr-3489":"16.3.0-canary.pr.3489.568f3378cc3cf660e25d79253cc9a101ae9df4e0","canary-pr-3493":"16.3.0-canary.pr.3493.365426c363b5db8b3278d34deff0d790edcb6fdd","canary-pr-3494":"16.3.0-canary.pr.3494.25e1e8c8de6b13288ac61febf75d6f415f81a044","canary-pr-3496":"16.3.0-canary.pr.3496.43a2529cfa6890f5a11867e62c7a817d7879235d","canary-pr-3497":"16.3.0-canary.pr.3497.4a0bc98371a633cf49efc236c1011ca5a955e848","canary-pr-3498":"16.3.0-canary.pr.3498.5fd2797529557639476d5aa24359f97653bcbf22","canary-pr-3499":"16.3.0-canary.pr.3499.ee62926bcf03d7d05ccb227cb7a67338ebab423d","canary-pr-3501":"16.3.0-canary.pr.3501.1daccf7bfd7fe9ffeabb319f26aa1b9bf5133e4c","canary-pr-3502":"16.3.0-canary.pr.3502.de9b8457d4a34eb544ff7b97ffacd641c913a2d1","canary-pr-3504":"16.3.0-canary.pr.3504.7c7b6ed1e17e6cf5e114f1a89a24d289fb969aff","canary-pr-3505":"16.3.0-canary.pr.3505.b157d96d56ade071a24a1b0c71334efb9af57689","canary-pr-3506":"16.3.0-canary.pr.3506.be685b29062b443b0962af292fb5c9337331db70","canary-pr-3510":"16.3.0-canary.pr.3510.5099f4491dc2a35a3e4a0270a55e2a228c15f13b","canary-pr-3512":"16.3.0-canary.pr.3512.a3b8b9e394ae4050a2100de2720f8b3ded0a3e41","canary-pr-3514":"16.3.0-canary.pr.3514.a34e553c7cc83a21ffa73c7bf1a1932007a2606b","canary-pr-3518":"16.3.0-canary.pr.3518.3a63d81d7ad886f7edc3cab06fd2295b71c91bed","canary-pr-3520":"16.3.0-canary.pr.3520.688c34204fb183f15a334882567d4d6d011cd234","canary-pr-3521":"16.3.0-canary.pr.3521.f50bec8fecfd5aaa7e74227c5a4b9056dae9e849","canary-pr-3601":"17.0.0-alpha.1.canary.pr.3601.9a812ce71ad05c9dc089b40129f8295ca733e108","canary-pr-3651":"17.0.0-alpha.1.canary.pr.3651.57364d3f9da445b2bba520d3b886e07dc2af10e2","canary-pr-3658":"17.0.0-alpha.1.canary.pr.3658.null","canary-pr-3659":"17.0.0-alpha.1.canary.pr.3659.5dba20aef36112d13569d5f296ef967383e60d0f","canary-pr-3673":"17.0.0-alpha.1.canary.pr.3673.53c289997f206acd10388d6a574341c68cc1a30e","canary-pr-3686":"16.5.0-canary.pr.3686.d9ad8e3fd58929d38deea522d794a6b22d3244b5","canary-pr-3703":"17.0.0-alpha.1.canary.pr.3703.df016a7b352e356ad0049dd81e2cd14252cec5fe","canary-pr-3754":"17.0.0-alpha.2.canary.pr.3754.1564174b0dc26e0adf7ff2833716d06606b06a20","canary-pr-3791":"17.0.0-alpha.3.canary.pr.3791.4a8f641106bee54f1e4a4de4bf59c49976541b00","canary-pr-3911":"17.0.0-alpha.2.canary.pr.3911.a281faf70fee4ba1522af45cf15f41a899c723c4","canary-pr-3937":"17.0.0-alpha.2.canary.pr.3937.8e773a04d8041ffc00a1550e8c6688e01ba11832","canary-pr-3957":"17.0.0-alpha.2.canary.pr.3957.454033bcee41c456acce935e49e3e420b75115e4","canary-pr-3969":"17.0.0-alpha.3.canary.pr.3969.83688beb16ecba5a0495158c3c2b3684730579bf","canary-pr-4002":"17.0.0-alpha.3.canary.pr.4002.b3f6af2e83280d7830b2a01265e0977b7b68e2f4","canary-pr-4026":"17.0.0-alpha.3.canary.pr.4026.405885d861f562a160f9e92d0be418d819312016","canary-pr-4032":"17.0.0-alpha.3.canary.pr.4032.8bcdcea90e0a24432a78270866c27e0db6a2ae4d","canary-pr-4035":"17.0.0-alpha.3.canary.pr.4035.3404abc2382e32f6a3ab26f08a9ed54554678fa9","canary-pr-4097":"17.0.0-alpha.3.canary.pr.4097.291dd92c9059c6bcc88ff1fa21058a8ac519cf83","canary-pr-4153":"17.0.0-alpha.5.canary.pr.4153.d5c18bebb93273daf40fce67daa1babc430a2ce2","canary-pr-4159":"16.9.0-canary.pr.4159.0fa29326c53fcd63c6473c7357c28aa13fa0019d","canary-pr-4192":"16.10.0-canary.pr.4192.22fb497360b20aa7bf7c12aa87d2420ff394b3a0","canary-pr-4288":"17.0.0-alpha.7.canary.pr.4288.b96419eebb37a65c76964ccd0994ab9d3b4e8215","canary-pr-4297":"17.0.0-alpha.7.canary.pr.4297.42bcd01f7c733e255ff9eab84ec8d7500dfd208a","canary-pr-4319":"17.0.0-alpha.7.canary.pr.4319.abe5e8e0bb4a916f37d6d1b7fdcf128155a24a46","canary-pr-4359":"16.10.0-canary.pr.4359.9fe5229b2fc30d3e5b07a6b00693fac42b649fdd","canary-pr-4364":"16.11.0-canary.pr.4364.2b4ffe237616247a733274dfdcb404c3d55d9f02","canary-pr-4384":"16.11.0-canary.pr.4384.c095a7b7d5dc33c988f84f0c921ae2f74bb710e6","experimental-stream-defer":"16.1.0-experimental-stream-defer.6","latest":"17.1.0","latest-15":"15.11.0","latest-16":"16.15.0","rc":"17.0.0-rc.0","v15.x.x":"15.10.0"}}