4 ms·
> The next after GraphQL will be something like executing your own code in sandboxed environment on the server, with strong constrains etc. Ah, like a SQL data
by krab 9y ago
> The next after GraphQL will be something like executing your own code in sandboxed environment on the server, with strong constrains etc.
Ah, like a SQL database with procedures? Honestly, I've wondered why the SQL interface isn't common for the remote APIs. My thoughts are that it's possible to run very expensive queries and you'd need provide some HTTP transport so it works for browser JavaScript.
- bartq 9y agoI think we're don't do that because it's too dangerous and user would have too much privileges. I'm referring to something like AWS Lambda, but handled by your library on your web server. Say you can run JS snippet only for 10ms and the only global non-standards variables are those that contain data that can be queried. Or even pass them through function params, look: ctx => ctx.users.filter(u=>u.name.contains('Janusz')).slice(0,10); And that will return 10 firsts users as JSON.