> For the complete documentation index, see [llms.txt](https://garden.famiclone.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://garden.famiclone.dev/development/web-development/graphql.md).

# GraphQL

GraphQL is a query language for API, that add ability to get many resources in a single request.

```javascript
// Scheme
type User {
  name: String
  tagline: String
  contributors: [User]
}

// GraphQL request
{
  project(name: "GraphQL") {
    tagline
    name
  }
}

// Response
{
  "project": {
    "tagline": "A query language for APIs",
    "name": "John"
  }
}
```
