How to handle mongodb connection errors?

Is there a way to have more control when mongodb has timeouts or connection issues? Cannot find anything related to meteor and this, so for example if my app has trouble connecting to mongodb how can I fallback and avoid any query till mongo is back online? any help would be appreciated as we normally have some timeouts from atlas and our backend keeps throwing the error but we haven’t figured out how to catch or handle this.


1 Like