GraphQL Server Builder Skill for DataLoader Batching
Build a GraphQL schema and nested resolver with request-scoped DataLoader batching, then measure data-source calls.
中文Install in Claude Code
Use a local GraphQL project, DataLoader, and an instrumented test data source. The example uses in-memory fixtures.
- Get the complete `plugins/api-development/graphql-server-builder/skills/building-graphql-server` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/building-graphql-server/SKILL.md`, start Claude Code at the project root, and call `/building-graphql-server`.
Example task
Give three books author IDs a1, a1, and a2. Query books { title author { name } } and inspect the batched author lookup. Run a second request to verify a fresh loader.What to check
Each book resolves to its proper author. The first request batches two distinct author IDs, and the second creates a separate loader.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can one DataLoader instance be shared across the server?
Create loaders per request. If a longer-lived cache is needed, design its invalidation and authorization boundaries separately.