{"name":"graphql","version":"16.10.0","description":"A Query Language and Runtime which can target any service.","license":"MIT","main":"index","module":"index.mjs","typesVersions":{">=4.1.0":{"*":["*"]},"*":{"*":["NotSupportedTSVersion.d.ts"]}},"sideEffects":false,"homepage":"https://github.com/graphql/graphql-js","bugs":{"url":"https://github.com/graphql/graphql-js/issues"},"repository":{"type":"git","url":"git+https://github.com/graphql/graphql-js.git"},"keywords":["graphql","graphql-js"],"engines":{"node":"^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0"},"publishConfig":{"tag":"latest"},"_id":"graphql@16.10.0","gitHead":"48afd37a48d37f6d3342b959e8cb34e1ecbfeffb","types":"./index.d.ts","_nodeVersion":"20.13.0","_npmVersion":"10.5.2","dist":{"integrity":"sha512-AjqGKbDGUFRKIRCP9tCKiIGHyriz2oHEbPIbEtcSLSs4YjReZOIPQQWek4+6hjw62H9QShXHyaGivGiYVLeYFQ==","shasum":"24c01ae0af6b11ea87bf55694429198aaa8e220c","tarball":"http://registry-npm.ywwl.com/graphql/download/graphql-16.10.0.tgz","fileCount":391,"unpackedSize":1363943,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeQLORuMDFYz4cC5NmO6zaE1vux+i5axGmqSc/YM0/FAIgf4RtGAWOlW2jsXFdqou74+XOX3S4nNF5k7jYyT4Bl1k="}],"size":284657,"noattachment":false,"key":"/graphql/-/graphql-16.10.0.tgz"},"_npmUser":{"name":"jdecroock","email":"decroockjovi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/graphql_16.10.0_1734258918131_0.6862393457522722"},"_hasShrinkwrap":false,"readme":"[![GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation](https://github.com/user-attachments/assets/2d048502-e5b2-4e9d-a02a-50b841824de6)](https://graphql.org/conf/2024/?utm_source=github&utm_medium=graphql_js&utm_campaign=readme)\n\n# 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[![Coverage Status](https://codecov.io/gh/graphql/graphql-js/branch/main/graph/badge.svg)](https://codecov.io/gh/graphql/graphql-js)\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### Experimental features\n\nEach release of GraphQL.js will be accompanied by an experimental release containing support for the `@defer` and `@stream` directive proposal. We are hoping to get community feedback on these releases before the proposal is accepted into the GraphQL specification. You can use this experimental release of GraphQL.js by adding the following to your project's `package.json` file.\n\n```\n\"graphql\": \"experimental-stream-defer\"\n```\n\nCommunity feedback on this experimental release is much appreciated and can be provided on the [issue created for this purpose](https://github.com/graphql/graphql-js/issues/2848).\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","publish_time":1734258918376,"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"},{"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":"jdecroock","email":"decroockjovi@gmail.com"},{"name":"mjmahone","email":"mahoney.mattj@gmail.com"}],"_cnpm_publish_time":1734258918376,"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"}}