Is there a way in MongoDB to retrieve all documents except for one named Test?
The current code retrieves all the documents.
db.getCollectionNames().forEach(function(collection) {
var result = db[collection];
if(result !== 'Test') {
print("All the documents: " + "for collection: "+ collection);
}
});