Glossary

What is GraphQL?

A query language for APIs that lets clients request exactly the data they need in a single request, offering more flexibility than traditional REST APIs.

In Depth

Understanding the Details

GraphQL was developed by Facebook to solve a common REST API problem: fetching related data often requires multiple requests (get the user, then get their orders, then get order items). With GraphQL, clients describe the data they want in a single query and receive exactly that — no over-fetching unnecessary fields, no under-fetching that requires additional requests. For frontend development, this means faster page loads and simpler data management. For API providers, GraphQL reduces the need to create custom endpoints for different use cases. The trade-off is additional complexity in API design, caching, and security compared to REST.

Examples

How It Works in Practice

Dashboard data fetching

A single GraphQL query fetches user profile, recent activity, and notification count in one request, replacing three separate REST API calls.

Mobile optimisation

A mobile app uses GraphQL to request only the fields needed for each screen, reducing data transfer and improving performance on slow connections.

Headless CMS

A content management system exposes a GraphQL API, allowing the frontend to query exactly the content fields and relationships needed for each page.

Importance

Why It Matters

GraphQL can significantly improve developer experience and application performance by eliminating the over-fetching and multiple-request problems common with REST APIs.

Misconceptions

What People Often Get Wrong

GraphQL replaces REST. Actually, both patterns have strengths and many organisations use both for different use cases.

GraphQL is always faster than REST. Actually, poorly designed GraphQL queries can be slower, and REST with proper caching can be very efficient.

GraphQL is only for large applications. Actually, GraphQL can simplify data fetching even in smaller applications with complex data relationships.

Our Approach

How We Handle GraphQL

We use GraphQL where it provides clear advantages — complex data requirements, mobile optimisation, or headless CMS frontends — and REST where simplicity is the priority.

FAQ

Common Questions

Need Help With GraphQL?

If you'd like to discuss how graphql applies to your business, we're happy to explain further.