Re:Migrating Netflix to GraphQL Safely
by zeroonetwothree on Monday June 19, 2023 @10:04AM
(#36391220)
GraphQL makes it straightforward to do conditional queries like:
… on Book {
title
author
if_viewer_can_purchase {
price
shipping
}
}
This is quite annoying to do with traditional REST without overfetching data you don’t need.
Also, for a well architected backend you can spread load better on the backend and shockingly you can also leverage caching if you are doing a "dumb" rest api.