Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1418

Provide a `withSession` helper on `MongoClient`

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Native
    • None

      We currently have a very freeform API for sessions which allows great flexibility, but also makes it very easy to forget to clean up sessions. We should provide a withSession helper which implicitly creates a session, and cleans it up after the given operation is completed.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: