Skip to content

Commit 272765b

Browse files
committed
Fix async src doc links
1 parent 9324a6f commit 272765b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/reference/content/driver-async/getting-started/quick-tour.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ cluster and use it across your application. When creating multiple instances:
8686
## Get a Collection
8787

8888
To get a collection to operate upon, specify the name of the collection to
89-
the [`getCollection(String collectionName)`]({{< apiref "com/mongodb/client/MongoDatabase.html#getCollection-java.lang.String-">}})
89+
the [`getCollection(String collectionName)`]({{< apiref "com/mongodb/async/client/MongoDatabase.html#getCollection-java.lang.String-">}})
9090
method:
9191

9292
The following example gets the collection `test`:
@@ -181,7 +181,7 @@ collection.insertMany(documents, new SingleResultCallback<Void>() {
181181

182182
Now that we've inserted 101 documents (the 100 we did in the loop, plus
183183
the first one), we can check to see if we have them all using the
184-
[count()]({{< apiref "com/mongodb/client/MongoCollection#count--">}})
184+
[count()]({{< apiref "com/mongodb/async/client/MongoCollection#count--">}})
185185
method. The following code should print `101`.
186186

187187
```java
@@ -197,16 +197,16 @@ collection.count(
197197
## Query the Collection
198198

199199
Use the
200-
[find()]({{< apiref "com/mongodb/client/MongoCollection.html#find--">}})
200+
[find()]({{< apiref "com/mongodb/async/client/MongoCollection.html#find--">}})
201201
method to query the collection.
202202

203203
### Find the First Document in a Collection
204204

205205
call the first() method on the result of the find() of method
206206

207207
To get the first document in the collection, call the
208-
[first()]({{< apiref "com/mongodb/client/MongoIterable.html#first--">}})
209-
method on the [find()]({{< apiref "com/mongodb/client/MongoCollection.html#find--">}})
208+
[first()]({{< apiref "com/mongodb/async/client/MongoIterable.html#first--">}})
209+
method on the [find()]({{< apiref "com/mongodb/async/client/MongoCollection.html#find--">}})
210210
operation. `collection.find().first()` returns the first document or null rather than a cursor.
211211
This is useful for queries that should only match a single document, or if you are
212212
interested in the first document only.

0 commit comments

Comments
 (0)