Skip to content

Commit

Permalink
Fix broken link to Query API section in Mongoose docs (mdn#29298)
Browse files Browse the repository at this point in the history
The existing link to Query API in Mongoose docs is broken. Submitting correct link to the section covered in the docs.
  • Loading branch information
sazk07 authored Sep 29, 2023
1 parent e36eb42 commit 38c603e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ const tennisPlayers = await Athlete.find(
> **Note:** It is important to remember that not finding any results is **not an error** for a search — but it may be a fail-case in the context of your application.
> If your application expects a search to find a value you can check the number of entries returned in the result.
Query APIs, such as [`find()`](<https://mongoosejs.com/docs/api/model.html#Model.find()>), return a variable of type [Query](https://mongoosejs.com/docs/api.html#query-js).
Query APIs, such as [`find()`](<https://mongoosejs.com/docs/api/model.html#Model.find()>), return a variable of type [Query](https://mongoosejs.com/docs/api/query.html).
You can use a query object to build up a query in parts before executing it with the [`exec()`](https://mongoosejs.com/docs/api/query.html#Query.prototype.exec) method.
`exec()` executes the query and returns a promise that you can `await` on for the result.

Expand Down

0 comments on commit 38c603e

Please sign in to comment.