Glossary

GraphQL

GraphQL is a query language for APIs developed by Facebook. The client describes exactly which fields it needs and gets precisely those — no extra data (overfetching) and no need for multiple requests (underfetching).

GraphQL vs REST

REST: GET /users/42 returns the entire User object — the client uses only name. GraphQL: query { user(id: 42) { name } } — the server returns only name. One endpoint instead of dozens.

Key concepts

When to choose GraphQL

Ideal for mobile clients (minimal traffic), complex nested data, and when multiple clients have different data needs. REST is simpler for straightforward CRUD.