Details
-
New Feature
-
Resolution: Won't Fix
-
Major - P3
-
None
-
1.8.3
-
None
Description
The current UpdateBuilder API only allows the value of the named element to be set.
See the following code UpdateBuilder.cs#L680:
public static UpdateBuilder SetOnInsert(string name, BsonValue value) |
public UpdateBuilder SetOnInsert(string name, BsonValue value) |
For completeness, we should consider adding an overloaded method to provide a complete document. For example:
public static UpdateBuilder SetOnInsert(BsonDocument document) { ... } |
public UpdateBuilder SetOnInsert(BsonDocument document) { ... } |