# GRAPHQL

> Query language for APIs.

- Skill: `dhaupin/graphql` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dhaupin/graphql`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dhaupin/graphql/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: dhaupin (https://skillmd.com/u/dhaupin)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dhaupin/graphql

---


# GraphQL

> Query language for APIs.

---

## When To Use

- API queries
- Nested data
- Single request

---

## What To Do

### 1. Query

```graphql
query {
  user(id: 1) {
    name
    email
    posts {
      title
    }
  }
}
```

### 2. Mutation

```graphql
mutation {
  createUser(input: { name: "New" }) {
    id
    name
  }
}
```

### 3. Schema

```graphql
type User {
  id: ID!
  name: String!
  email: String
}

type Query {
  user(id: ID!): User
}
```

### 4. Tools

| Tool | Use |
|------|-----|
| Apollo | Server/Client |
| GraphQL Yoga | Server |
| urql | Client |

---

**Role**: GraphQL Developer  
**Input**: Query  
**Output**: Data

> Query.
