File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,8 @@ the following rules:
211
211
- Includes an empty ``lastname`` field
212
212
- Stores the ``Address`` field as a nested value
213
213
214
+ .. _golang-bson-options:
215
+
214
216
BSON Options
215
217
------------
216
218
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ What's New
26
26
27
27
Learn what's new in:
28
28
29
+ * :ref:`Version 2.2 <golang-version-2.2>`
29
30
* :ref:`Version 2.1 <golang-version-2.1>`
30
31
* :ref:`Version 2.0 <golang-version-2.0>`
31
32
* :ref:`Version 1.17 <golang-version-1.17>`
@@ -37,6 +38,20 @@ Learn what's new in:
37
38
* :ref:`Version 1.12.1 <version-1.12.1>`
38
39
* :ref:`Version 1.12 <version-1.12>`
39
40
41
+ .. _golang-version-2.2:
42
+
43
+ What's New in 2.1
44
+ -----------------
45
+
46
+ The 2.2 {+driver-short+} release includes the following improvements
47
+ and fixes:
48
+
49
+ - Adds a new ``OmitEmpty`` global flag to globally omit empty values from
50
+ marshaled BSON. This prevents the driver from writing null values for fields
51
+ with empty values. For more information on setting the ``OmitEmpty`` global flag,
52
+ see the example in the :ref:`BSON Options<golang-bson-options>` section of the
53
+ BSON guide.
54
+
40
55
.. _golang-version-2.1:
41
56
42
57
What's New in 2.1
You can’t perform that action at this time.
0 commit comments