GraphQL API
Client-defined queries
Why it exists
- Fetch exactly the fields you need (no over-fetching)
- One endpoint for all operations
Tradeoffs
- Caching is harder than REST
- Query complexity / abuse risk
POST /graphql — body: { query }
Client-defined queries