Design GraphQL schemas that scale: type definitions, resolver patterns, N+1 prevention with DataLoader, subscriptions, schema stitching, and Apollo Federation for microservices.
When to use this skill
- Designing a GraphQL schema
- Solving N+1 queries in GraphQL
- Setting up Apollo Federation
Core concepts
This skill provides guidance on graphql patterns best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/architecture/graphql-patterns.zip
unzip graphql-patterns.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- designing a GraphQL schema
- solving N+1 queries in GraphQL
- setting up Apollo Federation