If someone wants to drop a single index and mistakenly runs dropIndexes(<index>) rather than dropIndex(<index>), they will drop all non-_id indexes.
I think dropIndexes() should throw an exception if an argument is passed, like dropDatabase() does.
If someone wants to drop a single index and mistakenly runs dropIndexes(<index>) rather than dropIndex(<index>), they will drop all non-_id indexes.
I think dropIndexes() should throw an exception if an argument is passed, like dropDatabase() does.