modernDistinctMap method

Future<Map<String, dynamic>> modernDistinctMap(
  1. String field, {
  2. dynamic query,
  3. DistinctOptions? distinctOptions,
  4. Map<String, Object>? rawOptions,
})

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();