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

Update with $addToSet/$push with a query on same field is broken during insert

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • Labels:
      None
    • Query

      > db.foo.update( { x : "a" },  { $addToSet : { x : "b" } } , true )

      Cannot apply $addToSet modifier to non-array

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: