how to display number of records in mongodb collection code example
Example 1: show collection data in mongodb
db.collectionName.find()
Example 2: see number of documents in mongodb collection
db.collection.count()
db.collectionName.find()
db.collection.count()