Services Portfolio Team Academy Blog Contact

GraphQL: The Alternative to REST

1,147 1 min

GraphQL is a query language developed by Facebook. Where a REST API requires multiple endpoint calls for one page, GraphQL fetches all needed data in a single request (no under-fetching). And it never loads extra fields either (no over-fetching).

The schema and type system document the API automatically. Mutations modify data, while subscriptions provide real-time updates. In Laravel, the rebing/lighthouse package deploys GraphQL with minimal setup.

Share