Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
Description
When comparing two BsonDocuments using the BsonDocuments.equals() method the order of the fields does not seem to be considered.
Currently {a:1, b:1}.equals({b:1,a:1}) evaluates to true for BsonDocuments. For documents the expected behavior would be that documents are only considered to be same if the field order is the same.