You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MongoDB Query Language is undefined over documents with duplicate
2
-
field names. BSON builders may support creating a BSON document with
3
-
duplicate field names. While the BSON builder may not throw an error,
4
-
inserting these documents into MongoDB is not supported *even if* the
5
-
insert succeeds. For example, inserting a BSON document with duplicate
6
-
field names through a MongoDB driver may result in the driver silently
7
-
dropping the duplicate values prior to insertion.
8
-
1
+
The MongoDB Query Language does not support documents with duplicate
2
+
field names. While some BSON builders may support creating a BSON document with
3
+
duplicate field names, inserting these documents into MongoDB is not supported
4
+
*even if* the insert succeeds, or appears to succeed. For example, inserting a
5
+
BSON document with duplicate field names through a MongoDB driver may result in
6
+
the driver silently dropping the duplicate values prior to insertion, or may
7
+
result in an invalid document being inserted that contains duplicate fields. Querying against any such documents would lead to arbitrary and inconsistent results.
0 commit comments