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

Let array operators work on objects

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

      The boundary between "array" and "object" is particularly blurry for some languages (like PHP). It can be very easy to accidentally write something out, thinking it is an array, only to have it actually be stored internally as an "object".

      This wouldn't be a problem if array operators (such as $elemMatch, $in, $all, $slice, $size, $push, $pushAll, $addToSet, $pop, $pull, $pullAll) worked on objects. Also $insert and $remove from SERVER-2036 if/when they are implemented.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bugslayer John Crenshaw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: