Last Updated: November 21, 2025
Core Type Patterns
| Type | Recommended Usage |
|---|---|
Object types
|
Model resources with fields |
Input types
|
Avoid leaking server objects in args |
Interfaces/Unions
|
Share fields across types |
Schema Evolution
@deprecated(reason: "...")
Flag fields clients should stop using
Limit query depth
Prevent expensive nested queries
Persisted queries
Whitelist known queries for caching and security
Security Considerations
Validate arguments, enforce auth in resolvers, and rate-limit anonymous access by default.
💡 Pro Tip:
Favor separate query and mutation entry points and document deprecated fields.