@maxdome/health-mongoose

2.0.1 • Public • Published

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"
      }
   ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @maxdome/health-mongoose

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

1.88 kB

Total Files

4

Last publish

Collaborators

  • dragonnodejs
  • sharaal
  • fabsrc
  • markusz
  • mxdbv
  • csaba.lorincz
  • goexrock
  • dimified