Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
1.1.0
-
None
Description
The SetSort() option currently accepts an interface{} value.
But it is incorrect to use an unordered map here, because it could have unexpected behavior.
I would expect it to return an error (or panic).
The same problem exists for index keys.
The error message should recommend to use bson.A.