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

Let array operators work on objects

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: