Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

How to check the current state of the connection with the database? #218

Open
sanslash332 opened this issue Apr 21, 2020 · 0 comments
Open

Comments

@sanslash332
Copy link

I'm using this awesome library in a small microservice to connect to mongo and control some documents on it; but, the microservice deppends directly of this connection, so if the connection if dropped, instead of have a constant answer of http 500 or something other controlled error, I want to dettect if the connection was dropped, and throw an exception to destroy the ms.

So, how to I can check the connection state?

Thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant