-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
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.
- is related to
-
GODRIVER-1216 mgo compatible bson registry
- Development Complete
- related to
-
GODRIVER-2137 empty/nil slices create null field, which can't be used by various functions
- Backlog