-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Received a client request for adding a global "omitempty" flag (see https://mongodb.aha.io/ideas/ideas/FF-I-7681).
Currently in order to avoid writing null value in a MongoDB document we need to specify omitempty for each field of the structure. Would be useful to have the possibility to define this globally
- is related to
-
GODRIVER-2765 Add an "omitzero" BSON struct tag
- Backlog
-
GODRIVER-2137 empty/nil slices create null field, which can't be used by various functions
- Backlog
-
GODRIVER-3138 Restore and clarify use of IsZero method when encoding BSON struct fields
- Closed