Slide 8
Slide 8 text
Avoid Over- and Underfetching: we only fetch what we need from the server by
constructing our query to only include what we need.
Prevent multiple API calls: In case you need more data, you can also avoid
making multiple calls to your API. In the case above, you don't need to make 2 API
calls to fetch /order and /product separately.
API Versioning: When the need for new features arises, you can easily add
additional fields, queries, mutations, etc. to the server without affecting other
parts of the application. Additionally, it is easier to remove old features.
Self-documenting: Every GraphQL API conforms to a "schema" which is the
graph data model and what kinds of queries a client can make.
Why GraphQL?