modernDistinctMap method
Executes a Distinct command on this collection. Retuns a Map like received from the server. Used for compatibility with the legacy method
Implementation
Future<Map<String, dynamic>> modernDistinctMap(String field,
{query,
DistinctOptions? distinctOptions,
Map<String, Object>? rawOptions}) async =>
_prepareDistinct(field, query: query, distinctOptions: distinctOptions)
.execute();