File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
docs/reference/content/driver-scala/bson Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ there are immutable and mutable implementations of documents. The underlying imp
16
16
namespace, which includes type aliases and companion objects. In general this should suffice but for advanced use cases you may need to
17
17
use ` org.bson ` directly.
18
18
19
+ {{% note class="important" %}}
20
+
21
+ The server's behavior related to duplicate key names in a document is undefined. When a
22
+ document with duplicate key names is decoded, the driver will assign the last
23
+ value associated with the duplicate key. Storing such a document will cause
24
+ the other values to be lost.
25
+
26
+ {{% /note %}}
27
+
19
28
{{% note %}}
20
29
The scala ` Document ` classes implement ` TraversableLike[(String, BsonValue)] ` and the general API mirrors that of a ` Map[String, BsonValue] ` .
21
30
However, unlike ` Map ` implementations of ` TraversableLike ` enables strict type safety as there is no variance in the value type.
You can’t perform that action at this time.
0 commit comments