# GRAPHQL

> GraphQL APIs

- Skill: `neuralblitz/graphql-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add neuralblitz/graphql-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/neuralblitz/graphql-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: NeuralBlitz (https://skillmd.com/u/neuralblitz)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/neuralblitz/graphql-2

---

# GraphQL APIs

GraphQL is a query language for APIs that enables clients to request exactly the data they need. It provides a complete description of data with a strongly typed schema.

## Key Concepts

- Schema Definition Language (SDL)
- Queries (read) and Mutations (write)
- Resolvers and DataSources
- Subscriptions for real-time
- Fragments for reusable selections

## Common Use Cases

- Mobile apps with limited bandwidth
- Complex data requirements
- Rapid product iteration
- BFF (Backend for Frontend)
- Aggregating multiple services

## Best Practices

- Design schema around UI needs
- Implement proper rate limiting
- Use DataLoader to prevent N+1
- Validate queries aggressively
- Set query depth limits

## Resources

- GraphQL.org: graphql.org/learn
- Related Skills: rest, apollo, api-design

