Re:Ask HN: Which is better: GraphQL vs. REST?
by nivertech on Saturday November 03, 2018 @01:56PM
(#18371518)
The only intelligent answer to under-specified question is "it depends".
If you want to decouple frontend development from backend development then go GraphQL route.
For example i you have multiple different consumers for your backend, i.e. an SPA, a mobile app and a 3rd party API endpoint. Wuth REST you will have to write and maintain 3 different endpoints vs only one with GraphQL.
If you want to decouple frontend development from backend development then go GraphQL route. For example i you have multiple different consumers for your backend, i.e. an SPA, a mobile app and a 3rd party API endpoint. Wuth REST you will have to write and maintain 3 different endpoints vs only one with GraphQL.