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

Update a size field with addToSet

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

      As mentioned over here: http://groups.google.com/group/mongodb-user/browse_thread/thread/9c4e2a157cc8e0c9

      It would be nice to have the ability to update a size field when doing a pushToSet (especially in connection with more than one element and $each). One can't simply use $inc since there is no information how many elements were actually pushed

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            rb2k Marc Seeger
            Votes:
            20 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: