Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1522

Session.withTransaction() Is not a Promise

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            adrian.migraso@gmail.com Adrian Migraso
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: