Skip to content

Commit 3d4378b

Browse files
authored
Merge pull request #13083 from lpizzinidev/gh-13071
docs(migrating_to_6): added info about removal of reconnectTries and reconnectInterval options
2 parents 408901d + 1dfbe4d commit 3d4378b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/migrating_to_6.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ If you're still on Mongoose 4.x, please read the [Mongoose 4.x to 5.x migration
4848
* [No default model for `Query.prototype.populate()`](#no-default-model-for-query-prototype-populate)
4949
* [`toObject()` and `toJSON()` Use Nested Schema `minimize`](#toobject-and-tojson-use-nested-schema-minimize)
5050
* [TypeScript changes](#typescript-changes)
51+
* [Removed `reconnectTries` and `reconnectInterval` options](#removed-reconnecttries-and-reconnectinterval-options)
5152

5253
<h3 id="version-requirements"><a href="#version-requirements">Version Requirements</a></h3>
5354

@@ -530,3 +531,10 @@ schema.virtual('myVirtual').get(function() {
530531
this.name; // string
531532
});
532533
```
534+
535+
<h3 id="removed-reconnecttries-and-reconnectinterval-options"><a href="#removed-reconnecttries-and-reconnectinterval-options">Removed <code>reconnectTries</code> and <code>reconnectInterval</code> options</a></h3>
536+
537+
The `reconnectTries` and `reconnectInterval` options have been removed since they are no longer necessary.
538+
539+
The MongoDB node driver will always attempt to retry any operation for up to `serverSelectionTimeoutMS`, even if MongoDB is down for a long period of time.
540+
So, it will never run out of retries or try to reconnect to MongoDB.

0 commit comments

Comments
 (0)