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

when doing upsert with $filter, don't use $as new fields

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

      > db.test.update( { name: 'ian', fruits:

      { $ne: 'apple' }

      }, { $push:

      { fruits: 'apple' }

      },

      { upsert: true }

      );
      Cannot apply $push/$pushAll modifier to non-array

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: