Method Merge
Merge(BsonDocument)
Merges another document into this one. Existing elements are not overwritten.
Parameters
document
BsonDocument The other document.
Returns
- Bson
Document The document (so method calls can be chained).
Merge(BsonDocument, bool)
Merges another document into this one, specifying whether existing elements are overwritten.
Parameters
document
BsonDocument The other document.
overwriteExistingElements
boolWhether to overwrite existing elements.
Returns
- Bson
Document The document (so method calls can be chained).