-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend-driven database access aka. "The Ultimate Endpoint" #566
Comments
it's a gamechanger for no-code/low-code envs too. Imagine airtable. You can fetch some data from REST/GraphQL but if you need a custom query you gonna ask backend dev anyway to prepare an endpoint. And you're blocked. With such a tool you gonna just ask the guys to install askQL server from an NPM + configure which resources it has access to. The app should have bindings (using Prisma or mongoose or whatever) to some popular databases like mongodb / MySQL + predefined AskQL functions like db-cursor and query features. To ensue data safety there could be an ACL based security system (we could potentially even anlyse the AskQL AST of the resources being used (and how) against the ACL rules assigned to specific user identity) |
Thanks @pkarw, I really like this idea! |
@pkarw , thank you for refreshing the topic of business ideas for AskQL. The vision is consistent with the vision we had. |
Let's do it. |
Related: #45 |
Related: #364 - schema discoverability |
Hi guys! I just wanted to share some ideas for the production usage of AskQL. I mean business case - which actually can be an idea for another product using AskQL :)
Use case
Imagine a legacy system having its own MySQL, Oracle, MongoDB database. You're a frontend developer building some new features and you need a single, additional piece of information from this DB. Wait - you need to match it and join with some other data from the REST endpoint.
OK, now you're writing down your specs into JIRA and waiting. Waiting, and ... waiting. In some extreme cases, the backend folks from another department that is handling the database maintenance are needing weeks if not months to deploy this change to prod. And you're blocked.
They can potentially think of GraphQL but it's still is not that elastic. If you need some heavy processing (like merging the data with REST API resources) you gonna still develop a middleware fetching the data first from GQL, then REST, and then mixing it all together. With AskQL you don't need to.
Now, imaging having a single JS endpoint with AskQL server and the resources - generated (think: prisma.io) or coded by these backend folks exposing you a set of data tables and collections.
Now, the whole app development is driven by frontend guys. They can send out the whole micro-askql application against this endpoint.
Moreover, it simplifies the data access - because the access language is always the same: AskQL and not MongoDB/JS or SQL.
The text was updated successfully, but these errors were encountered: