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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • None
    • Write Ops
    • None

    Description

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

      Cannot apply $addToSet modifier to non-array

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: