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]);