From 774a92a904880bde25d3a25e8032e131e60db003 Mon Sep 17 00:00:00 2001 From: Luca Pizzini Date: Tue, 1 Nov 2022 11:02:04 +0100 Subject: [PATCH] Removed outdated example fix #12618 --- lib/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 29aec767819..f395aded5a6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -322,10 +322,6 @@ Mongoose.prototype.get = Mongoose.prototype.set; * const opts = { replset: { strategy: 'ping', rs_name: 'testSet' }} * db = mongoose.createConnection('mongodb://user:pass@localhost:port,anotherhost:port,yetanother:port/database', opts); * - * // and options - * const opts = { server: { auto_reconnect: false }, user: 'username', pass: 'mypassword' } - * db = mongoose.createConnection('localhost', 'database', port, opts) - * * // initialize now, connect later * db = mongoose.createConnection(); * db.openUri('localhost', 'database', port, [opts]);