@maxdome/health-mongoose

Provides check function for [`health`](http://npmjs.com/@maxdome/health) checking MongoDB connection using [`mongoose`](https://www.npmjs.com/package/mongoose).

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Feb 25, 2019May 22, 2017Minified + gzip package size for @maxdome/health-mongoose in KB

Readme

Provides check function for health checking MongoDB connection using mongoose.

Usage

app.get('/health', require('@maxdome/health').controller({
  db: require('@dnode/health-mongoose')({ db }),
}));

Example response

{
   "outcome": "UP",
   "checks": [
      {
         "name": "db",
         "state": "UP"
      }
   ]
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.