# GRAPHQL

> Query language for APIs. Use when this capability is needed.

- Skill: `tomevault-io/graphql` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/graphql`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/graphql/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/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.

---
> Source: [dhaupin/vant](https://github.com/dhaupin/vant) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

