Hi Team,
I looked through the documentation and didn’t see anything but I was able to come up with a solution. I have tested this and it works. I want to know if this the proper and best way to call a cloud function from within a cloud function.
// This is the target function
Moralis.Cloud.define("getBob", async (request) => {
return {"name":"Bob Roberts"};
});
// This function is meant to call the target.
Moralis.Cloud.define("getIt",async(request) => {
return await Moralis.Cloud.run("getBob");
});
Thank you,
David