Skip to content

Commit cbeb9aa

Browse files
authored
Update 5-JOIN.mdx
1 parent 88ebfe3 commit cbeb9aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/50-aggregation/5-JOIN.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ db.authors.aggregate([
4747
]);
4848
```
4949

50-
### **Equivalent SQL Query**
50+
### **Equivalent SQL query**
5151

5252
```sql
5353
SELECT books.*, authors.*
@@ -61,11 +61,11 @@ The result in MongoDB will have an array (`authorDetails`) instead of flat colum
6161

6262
---
6363

64-
## 🔹 Handling Unwinding ($unwind)
64+
## 🔹 Handling unwinding ($unwind)
6565

6666
Since `$lookup` produces an **array**, we can flatten it using `$unwind`.
6767

68-
### Example 2: Get Only Book Titles and Single Author Name
68+
### Example 2: Get only book titles and single author name
6969

7070
```js
7171
db.authors.aggregate([
@@ -83,7 +83,7 @@ db.authors.aggregate([
8383
```
8484

8585
:::info
86-
The $lookup operation creates an array within each book document. Using $unwind then flattens this array, resulting in a separate document for every single book - author pair.
86+
The $lookup operation creates an array within each book document. Using $unwind then flattens this array, resulting in a separate document for every single book-author pair.
8787
:::
8888

8989
---

0 commit comments

Comments
 (0)