Can UpdateOneAsync give UpdateResult with MatchedCount != ModifiedCount?

When using MongoDB C# driver UpdateOneAsync function, is it possible to get an
Acknowledged UpdateResult, whose MatchedCount and ModifiedCount are not equal?

Hi @Ivan_Povazan,

I think the answer is yes if your update isn’t changing anything in the doc. For example if you try to {$set : {name: "Max"}} but this is already the value in the doc. Then you get a +1 for MatchedCount but 0 for ModifiedCount for this particular doc.

Cheers,
Maxime.