1.0.5 • Published 5 years ago
mongoose-countall v1.0.5
Mongoose countAll function
Installation
$ npm i mongoose-countall
Usage
require mongoose-countall package on app.js file.
require ('mongoose-countall');
Then use countAll function with your mongoose query
model
.find()
.countAll()
});
Return value
Promise fulfilled with object having the below properties
- count - total count of the model