how to determine mongodb collection name code example
Example: getcollectionnames
// Returns an Array containing names of all collection
// in the current Database
db.getCollectionNames()
// Returns an Array containing names of all collection
// in the current Database
db.getCollectionNames()