Details
-
Bug
-
Resolution: Gone away
-
Major - P3
-
None
-
None
-
None
Description
If a field in a struct is a slice, and it has no elements, and it is not omit empty, then it’s BSON value is nil.
This means that you can’t treat it like an array (e.g. use $push,) and we ran into issues with $in as well.
In MGO these types were [], and it appears that our application depends on this.
Attachments
Issue Links
- is related to
-
GODRIVER-1216 mgo compatible bson registry
-
- Closed
-
- related to
-
GODRIVER-2137 empty/nil slices create null field, which can't be used by various functions
-
- Backlog
-