diff --git a/docs/migrating_to_6.md b/docs/migrating_to_6.md index b6aaf41705d..a6bf65927aa 100644 --- a/docs/migrating_to_6.md +++ b/docs/migrating_to_6.md @@ -48,6 +48,7 @@ If you're still on Mongoose 4.x, please read the [Mongoose 4.x to 5.x migration * [No default model for `Query.prototype.populate()`](#no-default-model-for-query-prototype-populate) * [`toObject()` and `toJSON()` Use Nested Schema `minimize`](#toobject-and-tojson-use-nested-schema-minimize) * [TypeScript changes](#typescript-changes) +* [Removed `reconnectTries` and `reconnectInterval` options](#removed-reconnecttries-and-reconnectinterval-options)

Version Requirements

@@ -530,3 +531,10 @@ schema.virtual('myVirtual').get(function() { this.name; // string }); ``` + +

Removed reconnectTries and reconnectInterval options

+ +The `reconnectTries` and `reconnectInterval` options have been removed since they are no longer necessary. + +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. +So, it will never run out of retries or try to reconnect to MongoDB. \ No newline at end of file