I want to code Excel-like behaviour in my MEAN Application. What I mean with excel-like behaviour that is having cells and columns and rows (I have that in Angular already) and now I want to enable users to select e.g. 2 columns and let a self-defined calculation run over it.
Now storing User-defined Functions in MongoDB sounds like a very bad idea, since a user could drop the database.
The Stack
[User Input]
[Calculations/Functions]
[Controller]
[Middleware]
[API+Server]
[DB]
I discussed how to achieve this with MEAN here: Convert JSON String to Objects however I highly doubt this will be secure. Any idea how to achieve this in a solid fashion?