dropIndexes method
Implementation
Future<Map<String, dynamic>> dropIndexes(Object index,
{WriteConcern? writeConcern,
String? comment,
Map<String, Object>? rawOptions}) {
if (!db.masterConnection.serverCapabilities.supportsOpMsg) {
throw MongoDartError('dropIndexes method cannot be used before 3.6');
}
var indexOptions =
DropIndexesOptions(writeConcern: writeConcern, comment: comment);
var command = DropIndexesCommand(db, this, index,
dropIndexesOptions: indexOptions, rawOptions: rawOptions);
return command.execute();
}