Back to Glossary
Technology

GraphQL

Quick answer

A query language for APIs that lets the client request exactly the data it needs, in a single call.

Key takeaways

  • REST - fixed endpoints, predefined response
  • GraphQL - one flexible query, response exact to the request

What GraphQL is

GraphQL is a query language for APIs: the client specifies exactly which fields it wants, and the server returns precisely that data, in one request. An alternative to REST for interconnected-data cases.

Why it matters

It reduces the over-fetching (too much data) and under-fetching (too many calls) typical of REST. Useful for rich interfaces (portals, commerce apps) displaying data from many entities.

GraphQL vs REST

  • REST - fixed endpoints, predefined response
  • GraphQL - one flexible query, response exact to the request

How CRMconnect helps

CRMconnect exposes operational data (stock, orders, statuses) through modern APIs, including GraphQL patterns where consumers need flexible queries, e.g. the B2B portal and commerce integrations.

Real-world example

A B2B portal showed the customer profile, history and stock in 4 separate REST calls. With a single query on the CRMconnect layer, the page loaded faster and with fewer requests.

Last updated:

Frequently asked

Does GraphQL replace REST?+

Not necessarily. They coexist: REST is simple and robust for clear operations; GraphQL shines when the client needs flexible, interconnected data.

When is GraphQL worth it?+

When you have rich interfaces combining many entities and want to avoid many calls or redundant data.

Where CRMconnect fits

Want to see CRMconnect in action?

Personalized demo in 30 minutes - no card, no commitment.

Related terms