Back to list
Lv.3

GraphQL

GraphQL

A query language for APIs that lets you request exactly the data fields you need

In Simple Terms

GraphQL is a query language for Web APIs that lets apps and other clients specify exactly what data they need from a server. With traditional approaches, it was common to make multiple requests or receive more data than you actually needed. With GraphQL, you list only the fields you want, so you can get all the data you need in a single request.

Behind the Name

Graph + QL (Query Language). The 'Graph' part refers to how an API's data structure is represented as a graph — a diagram of relationships between types. 'QL' stands for Query Language, meaning it's a language for specifying and retrieving exactly the information you want from that graph.

Take a Closer Look!

GraphQL is a query language for Web APIs, developed by Facebook (now Meta).
It gives apps and websites a way to specify exactly what data they need when fetching from a server.

With traditional approaches like REST APIs, each endpoint typically returns a fixed set of data.
This often meant making multiple requests to gather everything a screen needed, or receiving fields you didn't ask for — like getting a full address and phone number when you only wanted a name.

With GraphQL, you list only the fields you want, so you can retrieve exactly the data you need in a single request.
Reducing unnecessary data transfer can help save battery on mobile devices and make apps feel more responsive.
Another key benefit is that frontend developers can freely choose and combine any data the server exposes.