News for hackers. Stuff that matters.
Re:REST vs. GraphQL – A search for evidence on which is better by dyeje on Wednesday December 16, 2020 @02:09AM (#25439896)
Yes, the advantage of a GraphQL endpoint is you can ask for a variety of things and the tradeoff is potential performance issues for unforeseen queries doing N+1s or something.

If you control the API and know all the use cases for a REST endpoint, the advantage is predictable performance characteristics and the tradeoff is flexibility.

It all depends on what you need (and maybe what tools you're using to mitigate GraphQL resolver problems).

There are no comments on this comment yet.