We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 111c1a8 commit f791837Copy full SHA for f791837
source/changeStreams.txt
@@ -373,7 +373,7 @@ upper-right to set the language of the examples on this page.
373
374
.. code-block:: java
375
376
- MongoClient mongoClient = new MongoClient( new MongoClientURI("mongodb://host1:port1,host2:port2..."));
+ MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<host>:<port>");
377
378
// Select the MongoDB database and collection to open the change stream against
379
0 commit comments