Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15320

BSONElement does not support a simple encapsulation of the value

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

      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:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: