diff --git a/docs/reference/content/driver/getting-started/quick-start.md b/docs/reference/content/driver/getting-started/quick-start.md index db23ba673a3..f9f5837e733 100644 --- a/docs/reference/content/driver/getting-started/quick-start.md +++ b/docs/reference/content/driver/getting-started/quick-start.md @@ -61,7 +61,7 @@ import java.util.List; ## Make a Connection Use [`MongoClients.create()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClients.html" >}}), -or [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) for the legacy MongoClient API, +or [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}) for the legacy MongoClient API, to make a connection to a running MongoDB instance. The `MongoClient` instance represents a pool of connections to the database; you will only need one instance of class `MongoClient` even with multiple threads. diff --git a/docs/reference/content/driver/tutorials/authentication.md b/docs/reference/content/driver/tutorials/authentication.md index 2abd664ad16..01e4b61677b 100644 --- a/docs/reference/content/driver/tutorials/authentication.md +++ b/docs/reference/content/driver/tutorials/authentication.md @@ -39,7 +39,7 @@ An authentication credential is represented as an instance of the factory methods for each of the supported authentication mechanisms. You can also use a [`MongoClientURI`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientURI.html" >}}) and pass it to a -[`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) constructor that takes a `MongoClientURI` parameter. +[`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}) constructor that takes a `MongoClientURI` parameter. ## Default Authentication Mechanism diff --git a/docs/reference/content/driver/tutorials/connect-to-mongodb.md b/docs/reference/content/driver/tutorials/connect-to-mongodb.md index 583eeb149be..190e1d4839a 100644 --- a/docs/reference/content/driver/tutorials/connect-to-mongodb.md +++ b/docs/reference/content/driver/tutorials/connect-to-mongodb.md @@ -17,7 +17,7 @@ Use [`MongoClients.create()`]({{< apiref "mongodb-driver-sync" "com/mongodb/clie The following examples are not meant to provide an exhaustive list of ways to instantiate `MongoClient`. For a complete list of MongoClients factory methods, see the [`MongoClients API documentation`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClients.html" >}}), or for the legacy MongoClient API see -the [`MongoClient() API documentation`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}). +the [`MongoClient() API documentation`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}). {{% /note %}} @@ -222,7 +222,7 @@ Finally, in some cases you may need to combine a connection string with programm ## `MongoClient` (legacy API) -A [`MongoClient`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) instance represents a pool of connections +A [`MongoClient`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}) instance represents a pool of connections to the database; you will only need one instance of class `MongoClient` even with multiple threads. {{% note class="important" %}} diff --git a/docs/reference/content/driver/tutorials/perform-read-operations.md b/docs/reference/content/driver/tutorials/perform-read-operations.md index b9967106f17..5bdad86a25c 100644 --- a/docs/reference/content/driver/tutorials/perform-read-operations.md +++ b/docs/reference/content/driver/tutorials/perform-read-operations.md @@ -239,7 +239,7 @@ For example, in the following, the `collectionWithReadPref` instance has the rea For read operations on [replica sets]({{}}) or [sharded clusters]({{}}), applications can configure the [read concern]({{}}) at three levels: -- In a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) +- In a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}) - Via [`MongoClientSettings`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientSettings.html" >}}): diff --git a/docs/reference/content/driver/tutorials/perform-write-operations.md b/docs/reference/content/driver/tutorials/perform-write-operations.md index 1953bcca1de..7a0cbd7d565 100644 --- a/docs/reference/content/driver/tutorials/perform-write-operations.md +++ b/docs/reference/content/driver/tutorials/perform-write-operations.md @@ -262,7 +262,7 @@ See also [Drop a Collection]({{< relref "driver/tutorials/databases-collections Applications can configure [write concern]({{}}) at three levels: -- In a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) +- In a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}) - Via [`MongoClientSettings`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientSettings.html" >}}): diff --git a/docs/reference/content/driver/tutorials/ssl.md b/docs/reference/content/driver/tutorials/ssl.md index 43b1e151cf1..38664b04ab6 100644 --- a/docs/reference/content/driver/tutorials/ssl.md +++ b/docs/reference/content/driver/tutorials/ssl.md @@ -132,7 +132,7 @@ MongoClientOptions options = MongoClientOptions.builder() By default, the driver ensures that the hostname included in the server's SSL certificate(s) matches the hostname(s) provided when -constructing a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}). +constructing a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClient.html" >}}). If your application needs to disable hostname verification, you must explicitly indicate this in `MongoClientSettings`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientSettings" >}})