-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
In https://docs.mongodb.com/manual/reference/bson-type-comparison-order/index.html#objects, object order is defined as:
- Recursively compare key-value pairs in the order that they appear within the BSON object.
- Compare the key field names.
- If the key field names are equal, compare the field values.
- If the field values are equal, compare the next key/value pair (return to step 1). An object without further pairs is less than an object with further pairs.
However, before 2. is an extra step that compares the field types.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- causes
-
SERVER-51258 Unexpected behavior in range query on whole embedded documents with MinKey and MaxKey subfield values
- Closed
- is duplicated by
-
SERVER-51258 Unexpected behavior in range query on whole embedded documents with MinKey and MaxKey subfield values
- Closed