Skip to content

Commit 3986618

Browse files
committed
RR comments
1 parent bf82344 commit 3986618

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

source/fundamentals/bson.txt

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ the following rules:
211211
- Includes an empty ``lastname`` field
212212
- Stores the ``Address`` field as a nested value
213213

214+
.. _golang-bson-options:
215+
214216
BSON Options
215217
------------
216218

source/whats-new.txt

+15
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ What's New
2626

2727
Learn what's new in:
2828

29+
* :ref:`Version 2.2 <golang-version-2.2>`
2930
* :ref:`Version 2.1 <golang-version-2.1>`
3031
* :ref:`Version 2.0 <golang-version-2.0>`
3132
* :ref:`Version 1.17 <golang-version-1.17>`
@@ -37,6 +38,20 @@ Learn what's new in:
3738
* :ref:`Version 1.12.1 <version-1.12.1>`
3839
* :ref:`Version 1.12 <version-1.12>`
3940

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+
4055
.. _golang-version-2.1:
4156

4257
What's New in 2.1

0 commit comments

Comments
 (0)