17 ms·
I can see two potential benefits to GraphQL: - If you have separate backend and frontend teams, then it enable better decoupling as it essentially specifies a
by nicoburns 6y ago
I can see two potential benefits to GraphQL:
- If you have separate backend and frontend teams, then it enable better decoupling as it essentially specifies a minimum capability and flexibility that any backend API must meet.
- If you can use a 3rd party tool like Hasura to generate the GraphQL API then you get APIs (including realtime subscriptions) mostly for free without having to do any implementation work
Overall I agree that neither of these are super-compelling over REST in most cases, and REST apis have their own advantages around being flexible and better able to respond to complex use cases.