We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6153b commit f0867f7Copy full SHA for f0867f7
docs/reference/content/reference/management/sdam-monitoring.md
@@ -38,7 +38,7 @@ The following example demonstrates how to connect to a replica set and monitor a
38
const MongoClient = require('mongodb').MongoClient;
39
40
const url = 'mongodb://localhost:31000,localhost:31001/?replicaSet=rs';
41
-const client = new MongoClient();
+const client = new MongoClient(url);
42
43
client.on('serverDescriptionChanged', function(event) {
44
console.log('received serverDescriptionChanged');
0 commit comments