List Size Stats For All Collections
> db.getCollectionNames().forEach(function (collectionName) {
sizeInMb = db[collectionName].stats({ scale: 1024 * 1024 }).size;
print(collectionName + ": " + sizeInMb + "MB");
})
books: 10MB
authors: 2MB
genres: 1MBLast updated