Imagine I have a Mongoose model like this:
mongoose = require('mongoose')
Products = mongoose.model('Products')
How do I get size of the full corresponding collection in bytes? I found db.collection.storageSize
, but it's nowhere to be found in the Mongoose API docs.