Mongoose Client Wrapper
Optimized for use with Lambda, but still compatible with non-Lambda environments.
This library takes care of the following:
- Allow connections to multiple MongoDB databases (rather than assuming only one via
- Set optimal connection default settings geared toward Lambda (but allow overrides for non-Lambda environments).
- Provide convenience method for checking if the client is connected or connecting.
- Provide convenience method for disconnecting the client.