I want to create function dynamically in Azure Cosmos stored procedure using eval or Function constructor.
Let's have an example :
let fnStr = "function(){return 1; }" ; // string could contain any thing like a complex function
And want to use inside the azure cosmos stored proc
let fun =eval(fnStr);
fun();
But unfortunately, Azure cosmos does not support "eval" and "Function" constructor.
Do we have any alternatives?