Provide a `withSession` helper on `MongoClient`

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Native
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Matt Broadstone
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: