I am trying to process results of a bulkWrite operation within an Atlas function (javascript). I have tried multiple variations of try catch, awaiting, .then().catch().
The operation itself works great but no results are being fed back. I need to know the ids of the records that are updated vs inserted.
Here is the code as it currently stands:
let result = await inst.bulkWrite(upsertJobs);
console.log(result);
Any idea how to get the results data back from this function?