Answers for "how to get collection name in mongodb"

8

show collections in mongodb

db.getCollectionNames()
Posted by: Guest on June-08-2020
0

getcollectionnames

// Returns an Array containing names of all collection
// in the current Database
db.getCollectionNames()
Posted by: Guest on June-09-2020

Code answers related to "how to get collection name in mongodb"

Browse Popular Code Answers by Language