mediumFull Stack EngineerMobile
GraphQL vs REST — what are the trade-offs, and when would you choose GraphQL?
Posted 18/04/2026
by Mehedy Hasan Ador
Question Details
"Our mobile app makes 5 API calls to render one screen. GraphQL could reduce to 1. Worth the complexity?"
Suggested Solution
| Aspect | REST | GraphQL |
|---|---|---|
| Endpoints | Multiple | Single (/graphql) |
| Over-fetching | Common | Eliminated |
| Under-fetching | Multiple requests | Single query |
| Caching | HTTP caching (easy) | Requires Apollo Cache |
| Versioning | /v1, /v2 | Schema evolution |
GraphQL wins: Mobile (minimize data), complex nested data, multiple client types. REST wins: Simple CRUD, file upload, HTTP caching, team unfamiliarity.
N+1 in GraphQL
query { users { posts { comments { author } } } }
Each level = separate DB queries. Fix with DataLoader (batch + cache).