'Mongo DB show all collections except one

in Mongo DB how can I retrieve all documents except one which is Test

my code shows all the documents

db.getCollectionNames().forEach(function(collection) { 
    var result = db[collection]; 
    if(result != 'Test') { 
        print("All the documents: " + " for collection: "+ collection);
    } 
});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source