graphql
Design and implement GraphQL APIs.
Schema design
- Nouns for types, verbs for mutations
- Non-nullable by default
- Pagination with edges/node pattern
- Input types for complex mutations
- Interfaces for shared fields
Best practices
- DataLoader for N+1 prevention
- Query complexity analysis
- Rate limiting per query
- Persisted queries for production