DEV Community

Discussion on: Rest v/s GraphQL !

Collapse
 
sa_webb profile image
Austin Webb

Just incase someone reading this thinks it’s GraphQL or REST it’s totally possible to use both e.g. Apollo-Server-Express. We have to use REST for nearly every external service in our app, along with webhooks.
Even though this is a backend discussion it’s worth mentioning the reward of GraphQL on the Client side e.g. Apollo-Client or URQL where caching is mostly done automatically and writing manual updates is very easy.
We use URQL and if all of our active clients have the data for the views they need, there are zero server calls for n-users unless the window is reloaded or there is a data change, and this pretty much out-of-the-box. GraphQL is a difficult paradigm but overall I am very satisfied using it.