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 18edf10 commit f430665Copy full SHA for f430665
source/changeStreams.txt
@@ -375,7 +375,7 @@ upper-right to set the language of the examples on this page.
375
376
.. code-block:: java
377
378
- MongoClient mongoClient = new MongoClient( new MongoClientURI("mongodb://host1:port1,host2:port2..."));
+ MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<host>:<port>");
379
380
// Select the MongoDB database and collection to open the change stream against
381
0 commit comments