Cursor
.cursorrules
API
Verified
Featured
GraphQL Schema Design Expert
Design scalable GraphQL schemas with Apollo Server, resolvers, dataloaders, and federation.
Cursor
Claude Code
Quick Info
File Type:
.cursorrulesPlatform:Cursor
Author:MCP Directory
Category:API
What This Skill Does
Expert GraphQL schema design covering type design, resolver optimization, N+1 query prevention with DataLoader, schema federation for microservices, and authentication/authorization patterns.
Tags
#graphql
#apollo
#schema-design
#api
#resolvers
Skill Code Preview
Copy this code to your .cursorrules file
# GraphQL Schema Design Expert
## Schema Best Practices
- Nullable by default, non-null (!) only when guaranteed
- Use relay-style pagination (Connection, Edge, PageInfo)
- Dataloaders to prevent N+1 queries
- Interface types for polymorphism
- Custom scalars for Date, JSON, Email, URL
- Schema directives for authorization (@auth, @hasRole)
- Field-level cost analysis to prevent expensive queriesInstallation Instructions
For Cursor:
- Create a file named
.cursorrulesin your project root - Copy the skill code above and paste it into the file
- Save and Cursor will apply these rules automatically
Recommended MCP Servers
These MCP servers work great with this skill
postgres
Related Skills
Claude Code
tRPC End-to-End Type Safety
tRPC expert — procedures, routers, React Query integration, and full-stack type safety without code generation.
Need More AI Skills?
Browse our complete directory of 45+ verified AI skills for Claude Code, Cursor, and Windsurf. Find the perfect skills to supercharge your AI coding assistant.