Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
1.0.0
-
None
-
None
Description
There is a problem in the Distinct function. If the filter is nil, the distinct will not be executed:
collection.Distinct(context.Background(), "foo.bar", nil) |
As a workaround I have used a blank search request:
collection.Distinct(context.Background(), "foo.bar", bson.D{}) |