startSession issue

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Here it says startSession takes a second parameter (callback):
      https://github.com/mongodb/node-mongodb-native/blob/934a43a90141fbacebd4bcdd9151a4f6a8a8bc57/lib/mongo_client.js#L498

      It also says startSession will return a Promise:
      https://github.com/mongodb/node-mongodb-native/blob/934a43a90141fbacebd4bcdd9151a4f6a8a8bc57/lib/mongo_client.js#L499

      However startSession actually returns a ClientSession. I'm really confused how should I use startSession...

            Assignee:
            Daniel Aprahamian (Inactive)
            Reporter:
            Juha Lindstedt
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: