1.0.5 • Published 5 years ago

mongoose-countall v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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