What are the problems with REST?
-
enables declarative data fetching
-
a GraphQL server exposes a single endpoint
-
it is a query language for APIs
-
efficient data loading
-
multiple client applications can access precisely the data it needs
-
rapid product iterations on the frontend
-
quite a few companies...
GitHub chose GraphQL for our API v4 because it offers significantly more flexibility for our integrators. The ability to define precisely the data you want—and only the data you want—is a powerful advantage over the REST API v3 endpoints.
Can you think about the benefits of having Schemas and Types?