(no title)
slow_donkey | 5 years ago
Of course, the same could happen for standard REST as well, but I think the foot guns are more limited.
slow_donkey | 5 years ago
Of course, the same could happen for standard REST as well, but I think the foot guns are more limited.
hn_throwaway_99|5 years ago
So you get these very generic GraphQL APIs that map closely to the DB, when the exact opposite should be the case, that the APIs map as close as possible to the front-end use cases, and data is presented so that the front ends should need to have little, if any, customized view display logic. It even says so at the beginning of the spec:
> Product‐centric: GraphQL is unapologetically driven by the requirements of views and the front‐end engineers that write them. GraphQL starts with their way of thinking and requirements and builds the language and runtime necessary to enable that.
Aeolun|5 years ago
Or you can do like us, there’s no depth at all, since our types do not have any possible subqueries.