Skip to content

Commit 8a76e18

Browse files
DOCS-16083 add new error warning for duplicate field types (#4936)
* DOCS-16083 add new error warning * DOCS-16083 fix wording * DOCS-16083 concise term * DOCS-16083 update warning * DOCS-16083 add period * DOCS-16083 nick feedback
1 parent d3f6b28 commit 8a76e18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/reference/bson-type-comparison-order.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ MongoDB's comparison of :term:`BSON` objects uses the following order:
8080
#. Timestamp
8181
#. Regular Expression
8282
#. MaxKey (internal type)
83+
84+
.. warning::
85+
86+
Providing a sort pattern with duplicate fields causes an error.
8387

8488
#. If the field types are equal, compare the
8589
:ref:`key field names <document-field-names>`.

0 commit comments

Comments
 (0)