Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.0
-
None
Description
When calling FindOneAndUpdateOptions with update definition which is combination of items of update definitions list if the list is empty, then all document fields, except for id gets erased.
var updates = new List<UpdateDefinition<Region>>(); |
_collection.FindOneAndUpdateAsync(filter, Builders<Region>.Update.Combine(updates), new FindOneAndUpdateOptions<Region> |
{
|
ReturnDocument = ReturnDocument.After,
|
});
|