-
Type: Bug
-
Resolution: Incomplete
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS: mxlinux wildflower
mongosh version: 1.10.1
-
Not Needed
-
Developer Tools
example script (temp.js):
const session = db.getMongo().startSession();
console.log({isAsync: session.withTransaction(() => {})});
command line to run script "mongosh -f /tmp/temp.js"
withTransaction() returns 'undefined'.
expected function is thenable and has catch(), and finally() methods.