GraphQL represents a giant leap forward in the world of APIs - From REST to GraphQL
Issues with REST:
- REST APIs are designed to interact with one specific end point at a time. For example, you can get a list of all your issues on GitHub, but you can’t get a list of issues and the comments on those issues at the same time. This means you often need to make more than one “request” to the API to get the exact information you need.
- REST API results are determined by the API developer, and they want to make sure you have everything you could possibly want. This often means you are getting way more information than you intend to use.
GraphQL is a more flexible query structure, which allows you to request information based on connections across traditional data points.