AJ Learning Hub logoAJ Learning Hub

GraphQL

A query language for APIs that lets the client ask for exactly the data it needs in a single request, instead of fixed endpoints returning fixed shapes.

Analogy

Like ordering only the exact pizza toppings you want instead of a set menu.

Why it matters

It can cut over-fetching and round-trips when integrating data-heavy services, an alternative to REST worth recognizing.

In practice

One GraphQL query fetches a contact's name and last order only — nothing extra.

Related terms:REST APIAPIJSON