1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

Issues: Text not showing up properly #3796 (#3802)

This commit is contained in:
Umair Raza
2023-04-12 04:09:25 -07:00
committed by GitHub
parent 6aac3f296c
commit c5645299aa

View File

@@ -24,11 +24,11 @@ cursor.forEach((doc) => {
Cursors provide several methods that allow you to manipulate the result set and control the query execution. Some key methods include: Cursors provide several methods that allow you to manipulate the result set and control the query execution. Some key methods include:
- **`count()`**: Returns the total number of documents in the result set. - `count()`: Returns the total number of documents in the result set.
- **`limit(n)`**: Limits the number of documents retrieved to `n`. - `limit(n)`: Limits the number of documents retrieved to `n`.
- **`skip(n)`**: Skips the first `n` documents in the result set. - `skip(n)`: Skips the first `n` documents in the result set.
- **`sort(field, order)`**: Sorts the documents based on the specified field and order (1 for ascending, -1 for descending). - `sort(field, order)`: Sorts the documents based on the specified field and order (1 for ascending, -1 for descending).
- **`project(field)`**: Specifies the fields to include or exclude from the result documents. - `project(field)`: Specifies the fields to include or exclude from the result documents.
You can chain these methods together to build complex queries: You can chain these methods together to build complex queries: