Backend Fundamentals · Designing APIs
GraphQL
GraphQL lets a client ask one endpoint for exactly the fields a screen needs, checked against a typed schema. The work moves to the server, which needs batching, query limits and its own caching.
- Time25 min
- LevelDeveloper
- Pictures14 diagrams
- Check6 questions







Root resolver Query.user loads user 42.
Child resolvers User.posts loads 3 posts; each field resolves from its parent.
Batch DataLoader turns all author lookups into one query.
Response JSON in the same shape as the query, plus errors if any.
Resolvers one function per field, plus authorization checks.
Data sources databases, REST services, caches.