Add `toBSON` method to `ClientSession`

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When the driver erroneously attempts to serialize a ClientSession to the wire (often a result of some options error, or the like), we end up with a very unhelpful cyclic reference error. We should provide a toBSON method on ClientSession that throws a more useful error message.

            Assignee:
            Katherine Walker (Inactive)
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: