Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

TypeError: db.collection Name is not a function

db.listCollections().toArray(function(err, collections){
    //collections = [{"name": "coll1"}, {"name": "coll2"}]
});
 
PREVIOUS NEXT
Tagged: #Name #function
ADD COMMENT
Topic
Name
9+4 =