Skip to content

Commit 2539163

Browse files
authored
[C++] Add documentation warning against the use of duplicate key names (#101)
* add note about duplicate keys
1 parent 4c858c8 commit 2539163

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/data-formats/working-with-bson.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ and supports additional types, including dates, different-sized integers, ``Obje
2828
values, and binary data. For a complete list of supported types, see the :manual:`BSON Types </reference/bson-types/>`
2929
page in the {+mdb-server+} manual.
3030

31+
.. note::
32+
33+
Avoid adding duplicate keys to BSON documents. Although the `BSON specification <https://bsonspec.org/>`__
34+
allows duplicate keys, they can cause unexpected behavior in {+mdb-server+}.
35+
3136
BSON Values and Views
3237
~~~~~~~~~~~~~~~~~~~~~
3338

0 commit comments

Comments
 (0)