R (Bson by default) is
returned.
auto distinct(R = Bson, Q)(string fieldName, Q query, DistinctOptions options = DistinctOptions.init)Returns an input range of all unique values for a certain field for records matching the given query.
fieldName | Name of the field for which to collect unique values |
query | The query used to select records |
options | Options to apply |
R (Bson by default) is
returned.