This skill provides Claude with expert-level guidance for architecting and implementing robust GraphQL APIs. It covers advanced schema design principles like Relay-style cursor-based pagination and union-based error handling, while offering concrete implementations for N+1 query prevention using DataLoader. It also includes comprehensive patterns for resolver validation with Zod, real-time subscriptions, and essential security measures such as query depth and complexity limiting to protect backend resources from malicious or inefficient queries.
主要功能
01Scalable subscription patterns for real-time event delivery
02Relay-specification cursor-based pagination for large datasets
03501 GitHub stars
04N+1 query prevention using DataLoader batching and caching
05Security-focused query depth and complexity limiting
06Type-safe resolver validation using Zod and union result types
使用场景
01Implementing secure mutation patterns with robust input validation and error handling
02Refactoring existing GraphQL resolvers to eliminate performance bottlenecks and N+1 issues
03Designing a scalable and performant GraphQL schema for a new enterprise application