From 091e88bcf8f5ce41b80563bab4288a0965733a58 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Tue, 31 Jan 2023 14:14:39 -0600 Subject: [PATCH] feat: set default serverSelectionTimeoutMS to 9s and heartbeatFrequencyMS to 3s --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index df9ad89..9f7712a 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,12 @@ class Mongoose { logger: console, hideMeta: 'hide_meta', bindEvents: true, - mongo: {}, + mongo: { + options: { + serverSelectionTimeoutMS: 9000, + heartbeatFrequencyMS: 3000 + } + }, strict: true, strictQuery: false },