3 ms·
> With GraphQL there's always a need of more dependencies. Apollo, Hasura, Pothos, etc. In contrast, you can get REST going with nothing but vanilla stuff. Wel
by satvikpendem 4y ago
> With GraphQL there's always a need of more dependencies. Apollo, Hasura, Pothos, etc. In contrast, you can get REST going with nothing but vanilla stuff.
Well, one is a web standard and the other is not. Of course more dependencies are needed, it's no different than using a custom format library to parse said custom format. Additionally, you don't need Pothos or any other tool at all, if you want you can take the raw GraphQL query and send back whatever response you want from your server. The dependencies just make life easier.
- pier25 4y ago> if you want you can take the raw GraphQL query and send back whatever response you want from your server From the client you'd be missing caching but yeah. It's a completely different story in the server.
- satvikpendem 4y agoYeah on the client side, it depends on the client but many can cache your queries for you, I know Relay does this pretty well.