Practice this topic in a realistic system design interview
GraphQL is a query language for APIs that lets the client ask for exactly the data it needs. Instead of the server deciding one fixed response shape for each endpoint, the client sends a query that describes the shape of the response it wants.
In this chapter, we will look at GraphQL, how it works, the problems it solves compared to REST, and the new challenges it introduces on the server side.