{"repo":"graphql/graphql-js","free":true,"listed":false,"github":"https://github.com/graphql/graphql-js","clone":"git clone https://github.com/graphql/graphql-js.git","description":"A reference implementation of GraphQL for JavaScript","language":"TypeScript","stars":20345,"topics":["graphql","graphql-js"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GraphQL.js The JavaScript reference implementation for GraphQL, a query language for APIs created by Facebook. See more complete documentation at https://graphql.org/ and https://graphql.org/graphql-js/. Looking for help? Find resources from the community. Getting Started A general overview of GraphQL is available in the README for the Specification for GraphQL. That overview describes a simple set of GraphQL examples that exist as tests in this repository. A good way to get started with this repository is to walk through that README and the corresponding tests in parallel. Using GraphQL.js Install GraphQL.js from npm With npm : With yarn : With bun : GraphQL.js provides two important capabilities: building a type schema and serving queries against that type schema. First, build a GraphQL type schema which maps to your codebase. This defines a simple schema, with one type and one field, that resolves to a fixed value. The resolve function can return a value, a promise, or an array of promises. A more complex example is included in the top-level tests directory. Then, serve the result of a query against that type schema. This runs a query fetching the one field defined. The graphql function will first ensure the query is syntactically and semantically valid before executing it, reporting errors otherwise. Want to ride the bleeding edge? The npm branch in this repository is automatically maintained to be the last commit to 17.x.x to pass all tests, in the same form found on npm","default_branch":null,"files":null,"tree":[],"storefront":"/r/graphql","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/graphql/graphql-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}