Answers for "drop all indexes mongodb"

0

drop all indexes mongodb

db.getCollectionNames().forEach(function(collName) { 
    db.runCommand({dropIndexes: collName, index: "*"});
});
Posted by: Guest on December-20-2020

Browse Popular Code Answers by Language