listIndexes method
Implementation
Stream<Map<String, dynamic>> listIndexes(
{int? batchSize, String? comment, Map<String, Object>? rawOptions}) {
if (!db.masterConnection.serverCapabilities.supportsOpMsg) {
throw MongoDartError('listIndexes method cannot be used before 3.6');
}
var indexOptions =
ListIndexesOptions(batchSize: batchSize, comment: comment);
var command = ListIndexesCommand(db, this,
listIndexesOptions: indexOptions, rawOptions: rawOptions);
return ModernCursor(command).stream;
}