db.printCollectionStats()
db.
printCollectionStats
()- Provides a wrapper around the
db.collection.stats()
method. Returns statistics from every collection separated by threehyphen characters.
Note
The db.printCollectionStats()
in the mongo
shell does not returnJSON. Use db.printCollectionStats()
for manual inspection, anddb.collection.stats()
in scripts.
See also