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

Update: $push + $unique

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • None
    • Write Ops

    Description

      Allow new $unique option for $push to allow better control over array/set semantics.

      db.c.save({_id:1, a: [{name:"scott"}, {name:"john"}]});
      db.c.update({_id:1}, {$push: {a : {$each:[{name:"scott"}], $unique:"name"}}}) // no-op

      Attachments

        Issue Links

          Activity

            People

              backlog-server-query Backlog - Query Team (Inactive)
              scotthernandez Scott Hernandez
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: