Skip to content

Commit

Permalink
Removed outdated example
Browse files Browse the repository at this point in the history
fix #12618
  • Loading branch information
lpizzinidev committed Nov 1, 2022
1 parent 25cd782 commit 774a92a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/index.js
Expand Up @@ -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]);
Expand Down

0 comments on commit 774a92a

Please sign in to comment.