> db.test.update( { name: 'ian', fruits:
{ $ne: 'apple' }}, { $push:
{ fruits: 'apple' }},
{ upsert: true } );
Cannot apply $push/$pushAll modifier to non-array
- is related to
-
SERVER-390 upsert with x.y query misinterpreted by server
- Closed