Pros and cons of each of them:
GraphQL
Pro:
- provides accurate control of returned data to avoid unnecessary traffic.
- eliminates the need to return to the well again and again for attached / โfollow-upโ data.
- , - , GraphQL " >
- API.
Con:
HATEOAS/REST
Pro:
Con:
, GraphQL API REST, . /, GraphQL , API ; , REST.
, , , GraphQL . , HATEOAS, " ".
, Phil Sturgeon GraphQL vs REST: