modernCount method
Future<CountResult>
modernCount({
- SelectorBuilder? selector,
- Map<
String, Object?> ? filter, - int? limit,
- int? skip,
- CollationOptions? collation,
- String? hint,
- Map<
String, Object> ? hintDocument, - CountOptions? countOptions,
- Map<
String, Object> ? rawOptions,
inherited
Implementation
Future<CountResult> modernCount(
{SelectorBuilder? selector,
Map<String, Object?>? filter,
int? limit,
int? skip,
CollationOptions? collation,
String? hint,
Map<String, Object>? hintDocument,
CountOptions? countOptions,
Map<String, Object>? rawOptions}) async {
var countOperation = CountOperation(this,
query:
filter ?? (selector?.map == null ? null : selector!.map[key$Query]),
skip: skip,
limit: limit,
hint: hint,
hintDocument: hintDocument,
countOptions: countOptions,
rawOptions: rawOptions);
return countOperation.executeDocument();
}