BSONElement does not support a simple encapsulation of the value

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.7.6
    • Component/s: Shell
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Problem:

      There are cases when you you simply want to get the encapsulated value (type and object) of a BSONElement so that you can put this value elsewhere.

      Workaround:
      Use a switch statement to examine the type and then call the appropriate access method to get a String, Number, date etc. before putting this into the target element.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: