News for hackers. Stuff that matters.
Re:Migrating to GraphQL: A Practical Assessment by he0001 on Saturday July 06, 2019 @08:07AM (#20369230)
So the main sell point is to reduce traffic and let the backend sort out the n+1 and caching problems. I can see a bunch of problems with that, like required fields etc, which also must be fulfilled by the client and would be very fragmented as an error reply. Although in a microservice environment where a single or a few resources belongs to a single microservice, the client still needs to make several individual requests.
Re:Migrating to GraphQL: A Practical Assessment by he0001 on Saturday July 06, 2019 @08:30AM (#20369322)
Also by bunching APIs together means that if you split an API between two clusters all those graphql requests are now broken. But you don’t really know that because it’s hard to know what queries a client have created.

Also if someone creates a query that triggers a path where the n+1 problem absolutely wreak havoc with the backing data storage you could have serious problems with that. By fixing an API you get predictability. There’s also the mismatching between data versions and on what version or view you are operating on.