Okay so I'm using MongoDB Realm functions, a serverless platform that you define your functions like this:
exports = async function(param1, param2){
var result = {}
// do stuff
return result;
}
if (typeof module === 'object') {
module.exports = exports;
}
I want to ask if its possible to code in Elm function and run it inside a nodejs runtime? In other words like this:
exports = async function(param1, param2){
var result = {}
// do stuff
// call elm compiled js
return elmFunction(param1, param2);
}
var elmFunction = async function(param1, param2) {
// generator elm code
};