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

Allow array of fields for $unset value

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • Labels:
      None
    • Query

      $unset operator follow syntax like this :
      {$unset:{field: "irrelevant value"}} what is the use of this irrelevant value? (is it to maintain JSON format key:value)

      shouldn't it have syntax something like {$unset:[field1, field2]} ..array of fields to unset without values and it will not be confusing anymore.

      thanks

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            chandreshmaurya Chandresh Maurya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: