Running currentOp() is fine in the shell but I want my realm app to be able to access this information. Is it possible? If so, how? I have tried the obvious (below) but i’m getting “currentOp() is not a function”.
const collection = context.services.get(‘mongodb-atlas’).db(‘database’).collection(‘coll’);
const ops = await collection.currentOp();