Web apps & software

What is GraphQL?

GraphQL is a query language and runtime for APIs, created at Facebook, that lets a client ask for exactly the fields it needs, across related data, in a single request.

Why teams use it

Mobile apps and complex front ends avoid downloading unneeded data or making many round trips. A typed schema documents what is available, and tools generate code from it. Shopify's Storefront API is a well-known GraphQL API.

Trade-offs

Caching is harder than with REST, poorly designed queries can be expensive, and it adds complexity that small APIs do not need. It shines when many clients need different shapes of the same data.

Questions, answered

Not usually. Both coexist; the right choice depends on the clients and data.

No. It is a layer in front of databases and services.

By the Stegnor team · Updated