r/programming • u/macrohard_certified • Sep 03 '26
Maybe you don't need GraphQL
https://alexandrehtrb.github.io/posts/2026/09/maybe-you-dont-need-graphql/
278
Upvotes
r/programming • u/macrohard_certified • Sep 03 '26
View all comments
1
u/HNipps Sep 12 '26
It seems the core argument is that graphql requires mappers and logic to be written on the backend but that’s needed for a REST API anyway right?
True the backend code needs to be more modular for graphql to allow the requester to select individual fields but I see that as a good thing. Separation of concerns and all that.
And the proposal of using query params is just moving the graphql request body to the URL.
I get that designing and building a graphql server is more complicated than a REST API but surely the effort will compound over time and make it easier to refactor the backend. I’ve only built REST APIs in earnest so don’t have the experience of maintaining a graphql server over a long period of time but I can say it’s so beneficial for the frontend.