Details
-
New Feature
-
Resolution: Done
-
Minor - P4
-
1.6
Description
[BsonDefaultValue] is only valid on properties.
However, since fields can be serialized using [BsonElement], it would make sense to allow [BsonDefaultValue] on fields as well, and use the specified default value in deserialization when none is available.