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

XMLWordPrintableJSON

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

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

      Cannot apply $addToSet modifier to non-array

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

                Created:
                Updated:
                Resolved: