Skip to content

Commit

Permalink
Fix MongoClient api docs link
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Sep 24, 2020
1 parent 8e7ee79 commit f4622c0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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-core" "com/mongodb/MongoClient.html" >}}) for the legacy MongoClient API,
or [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/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.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/content/driver/tutorials/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-core" "com/mongodb/MongoClient.html" >}}) constructor that takes a `MongoClientURI` parameter.
[`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}) constructor that takes a `MongoClientURI` parameter.

## Default Authentication Mechanism

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/content/driver/tutorials/connect-to-mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-core" "com/mongodb/MongoClient.html" >}}).
the [`MongoClient() API documentation`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}).

{{% /note %}}

Expand Down Expand Up @@ -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-core" "com/mongodb/MongoClient.html" >}}) instance represents a pool of connections
A [`MongoClient`]({{< apiref "mongodb-driver-sync" "com/mongodb/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" %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ For example, in the following, the `collectionWithReadPref` instance has the rea

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:

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ See also [Drop a Collection]({{< relref "driver/tutorials/databases-collections

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/content/driver/tutorials/ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-core" "com/mongodb/MongoClient.html" >}}).
constructing a [`MongoClient()`]({{< apiref "mongodb-driver-sync" "com/mongodb/MongoClient.html" >}}).

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

0 comments on commit f4622c0

Please sign in to comment.