Typeerror: DB. Nazwa kolekcji nie jest funkcją

db.listCollections().toArray(function(err, collections){
    //collections = [{"name": "coll1"}, {"name": "coll2"}]
});
Undefined