by kpmah · 5y ago · 0 comments
SQL is just a query language, just like GraphQL, and is no less 'secure'. You can still have a layer between the front end and application database.
A practical way to use SQL would be to expose the subset of data that is visible to the user and allow that to be queried by SQL, just like it would be by GraphQL or REST.
It lets us build reports and other configurable data queries in a standard way for our case.
I can completely see how this makes sense using SQL although I think the complexity of the implementation might be a fair bit higher than mingo.
Then I remembered my experience of working with an SQL-like based API, that was a pleasant surprise and joy to work with.
I do not see why we can't use it from a client-side perspective, and safely re-cast it server-side.