Re:REST vs. GraphQL – A search for evidence on which is better
by dmitriid on Wednesday December 16, 2020 @10:07AM
(#25443404)
> I suggest you to take a step back and re-read the thread. Maybe the context got lost.
I've read the thread. And no, the context wasn't lost.
The whole point of GraphQL is flexible queries. And it is harder to make an efficient resolver in GraphQL than it is in REST.
And yes, your solution (and the solution everyone ends up arriving at) is reimplementing REST in GraphQL, poorly. Precisely because it is much harder to make an efficient resolver in GraphQL.
Re:REST vs. GraphQL – A search for evidence on which is better
by valenterry on Wednesday December 16, 2020 @07:37PM
(#25450811)
I think I have proven my point and I'm not eager to discuss additional topics about GraphQL in this subthread.
> https://news.ycombinator.com/item?id=25432655
In particular:
> Its much harder to make an efficient resolver than it is making an efficient REST endpoint.
As I showed, the claim is not true because it can be solved in the same way in both GraphQL and REST.