Skip to content

Commit f4622c0

Browse files
committed
Fix MongoClient api docs link
JAVA-3820
1 parent 8e7ee79 commit f4622c0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

docs/reference/content/driver/getting-started/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import java.util.List;
6161
## Make a Connection
6262

6363
Use [`MongoClients.create()`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClients.html" >}}),
64-
or [`MongoClient()`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}}) for the legacy MongoClient API,
64+
or [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) for the legacy MongoClient API,
6565
to make a connection to a running MongoDB instance.
6666

6767
The `MongoClient` instance represents a pool of connections to the database; you will only need one instance of class `MongoClient` even with multiple threads.

docs/reference/content/driver/tutorials/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ An authentication credential is represented as an instance of the
3939
factory methods for each of the supported authentication mechanisms.
4040

4141
You can also use a [`MongoClientURI`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientURI.html" >}}) and pass it to a
42-
[`MongoClient()`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}}) constructor that takes a `MongoClientURI` parameter.
42+
[`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) constructor that takes a `MongoClientURI` parameter.
4343

4444
## Default Authentication Mechanism
4545

docs/reference/content/driver/tutorials/connect-to-mongodb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Use [`MongoClients.create()`]({{< apiref "mongodb-driver-sync" "com/mongodb/clie
1717
The following examples are not meant to provide an exhaustive list
1818
of ways to instantiate `MongoClient`. For a complete list of MongoClients factory methods, see the
1919
[`MongoClients API documentation`]({{< apiref "mongodb-driver-sync" "com/mongodb/client/MongoClients.html" >}}), or for the legacy MongoClient API see
20-
the [`MongoClient() API documentation`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}}).
20+
the [`MongoClient() API documentation`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}).
2121

2222
{{% /note %}}
2323

@@ -222,7 +222,7 @@ Finally, in some cases you may need to combine a connection string with programm
222222
223223
## `MongoClient` (legacy API)
224224
225-
A [`MongoClient`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}}) instance represents a pool of connections
225+
A [`MongoClient`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) instance represents a pool of connections
226226
to the database; you will only need one instance of class `MongoClient` even with multiple threads.
227227
228228
{{% note class="important" %}}

docs/reference/content/driver/tutorials/perform-read-operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ For example, in the following, the `collectionWithReadPref` instance has the rea
239239

240240
For read operations on [replica sets]({{<docsref "replication/" >}}) or [sharded clusters]({{<docsref "sharding/" >}}), applications can configure the [read concern]({{<docsref "reference/read-concern" >}}) at three levels:
241241

242-
- In a [`MongoClient()`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}})
242+
- In a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}})
243243

244244
- Via [`MongoClientSettings`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientSettings.html" >}}):
245245

docs/reference/content/driver/tutorials/perform-write-operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ See also [Drop a Collection]({{< relref "driver/tutorials/databases-collections
262262

263263
Applications can configure [write concern]({{<docsref "reference/write-concern" >}}) at three levels:
264264

265-
- In a [`MongoClient()`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}})
265+
- In a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}})
266266

267267
- Via [`MongoClientSettings`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientSettings.html" >}}):
268268

docs/reference/content/driver/tutorials/ssl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ MongoClientOptions options = MongoClientOptions.builder()
132132

133133
By default, the driver ensures that the hostname included in the
134134
server's SSL certificate(s) matches the hostname(s) provided when
135-
constructing a [`MongoClient()`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClient.html" >}}).
135+
constructing a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}).
136136

137137
If your application needs to disable hostname verification, you must explicitly indicate
138138
this in `MongoClientSettings`]({{< apiref "mongodb-driver-core" "com/mongodb/MongoClientSettings" >}})

0 commit comments

Comments
 (0)