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

Let array operators work on objects

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: