Glossary · Backend
What is GraphQL?
GraphQL is a query language and runtime for APIs in which the client asks for exactly the fields it needs, in one request, against a typed schema the server publishes. It usually runs over a single HTTP endpoint and returns JSON shaped like the query.
Source: GraphQL: Introduction
Why it matters
GraphQL shines when many clients (web, mobile, partners) need different slices of the same connected data, because each client shapes its own response.
It also moves complexity to the server: caching, authorisation per field and protecting against expensive queries all need deliberate work that REST gets more cheaply.
Example
A mobile app requests { order(id: 123) { status items { name } } } and receives just the status and item names, nothing more.