|
|
|
|
|
by dmitriid
3023 days ago
|
|
> With REST you can have an N+1 query, but you're making multiple round trips from the client to the server. With REST I can specifically optimise the calls because I know the contract and the possible incoming/outgoing requests. > I can add the field without impacting existing clients that I have shipped. With REST, the old clients would also get the new field. Why are so many people discussing REST in GraphQL threads so oblivious of what REST is? One word: versioning > The point is that your teams can function independently of each other, each focusing more effort on doing their own job & less time syncing with the other team. Don't blame your failing processes on technology. There's nothing magical in GraphQL that makes it a magical thing making teams independent of each other. Tell me: what happens when frontend team requests data that's not exposed in the GraphQL schema? |
|
Why are you discussing graphQL you're oblivious to the problem it solves. Graphql obviates the need to version, like with REST. Facebook had that problem with 30k react components, their processes are fine. My processes are fine too, you are obviously just biased against graphQL. You can specifically optimize a graphQL query by the way.
Versioning creates an explosion of REST end points in fast changing code bases. GraphQL solves that problem. If you don't have that problem then don't use it. You don't need to insult other people who are explaining the benefits it had in their project. That seems oddly defensive of REST, which is the de facto transport for a GraphQL query (they aren't even mutually exclusive). This comment thread is like arguing what is the better fruit apples or potato. And potatoes aren't a fruit