Details
-
Bug
-
Resolution: Fixed
-
Minor - P4
-
1.4.2
-
None
Description
Docs say:
When decoding BSON to a D or M, the following type mappings apply when unmarshalling:
...
19. BSON null unmarshals to a primitive.Null.
But if I create a bson.M with a bson.Null value (or &bson.Null), marshal it, then unmarshal it, I get back nil for the field instead of bson.Null.