Better HN
topnewbestaskshowjobs
Log inSign up

tohjustin

2 karma · joined Aug 24, 2018 (8y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

I guess it's makes the front-end a whole lot easier to implement.

To fetch all the data that the app needs to render on a single view, the code would only need to make a single API call to a graphql endpoint and you only have to deal with a single, neatly formatted response.

As opposed to the traditional way of making multiple calls to different REST endpoints, you had to write quite a bit of code to transform & merge the data from each response before using them to render your views.