[GODRIVER-1768] Incorrect docs for unmarshaling BSON Null to bson.M Created: 14/Oct/20 Updated: 28/Oct/23 Resolved: 02/Nov/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Documentation |
| Affects Version/s: | 1.4.2 |
| Fix Version/s: | 1.4.3 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | David Golden | Assignee: | Isabella Siu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Docs say:
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. |
| Comments |
| Comment by Githook User [ 02/Nov/20 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}Message: |
| Comment by Githook User [ 02/Nov/20 ] |
|
Author: {'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}Message: |