4 ms·
GraphQL decouples the API and the database entirely. You can implement graphql as a direct DB access, but it's certainly not the intent. Quite the opposite real
by masklinn 8y ago
GraphQL decouples the API and the database entirely. You can implement graphql as a direct DB access, but it's certainly not the intent. Quite the opposite really, it was designed in not small part to provide the ability to aggregate and re-organise data from multiple sources in a single coherent API.
- iovrthoughtthis 8y agoCould we not just move the sql interpreter higher up the stack? Implement tables, views, functions as application code and use sql from the front end?
- marcosdumay 8y agoYou are missing the point. GraphQL is a relational query language, just like SQL but only less powerful. Fact is that people always wanted a just database anyway. But with some graphical interface on the front. Once we moved the interface to the client in an SPA, it seems unavoidable that backend will turn database-like.