I am using MongoDB 2, and I want to update multiple documents and upsert a value like processed:true into the collection. But MongoDB c# api only allows us to
processed:true
You cannot do it in one statement.
You have two options
1) loop over all the objects and do upserts
2) figure out which objects have to get updated and which have to be inserted then do a batch insert and a multi update