Skip to content

Commit 86450d6

Browse files
authored
Update 7-repeating-stages.mdx
1 parent ac67fd2 commit 86450d6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/30-simple-queries/7-repeating-stages.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import Tabs from '@theme/Tabs';
22
import TabItem from '@theme/TabItem';
33

4-
# 🦸‍♂️ Repeating stages
4+
# 🦸‍♂️ Repeating Stages
55

66
:::info
7-
Extra activity, do it if you have extra time or are following at home, won't be covered during the hands-on Lab
7+
Extra activity! Do it if you have extra time or are following along at home. It won't be covered during the hands-on lab.
88
:::
99

10-
11-
From the [Aggregation Pipelines manual](https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/#stages).
10+
From the [aggregation pipelines manual](https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/#stages):
1211

1312
> All stages except the $out, $merge, $geoNear, $changeStream, and $changeStreamSplitLargeEvent stages can appear multiple times in a pipeline.
1413
15-
So we can repeat most stages, and do something like this to get all books from 1985 with more than 100 pages (although it can make sense or not)
14+
So we can repeat most stages, and do something like this to get all books from 1985 with more than 100 pages (although it may or may not make sense):
1615
<Tabs groupId="aggregations">
1716
<TabItem value="atlas" label="Atlas UI">
1817

@@ -37,7 +36,7 @@ db.books.aggregate([{$match: {pages: {$gte: 100}}}, {$match: {year: 1985}}])
3736

3837

3938

40-
💻 Add several `$limit` stages at the end of the above aggregation, limiting to 1 book and see what happens
39+
💻 Add several `$limit` stages at the end of the above aggregation, limiting to 1 book, and see what happens.
4140

4241
<details>
4342
<summary>Answer</summary>
@@ -68,4 +67,4 @@ db.books.aggregate([
6867

6968

7069
</div>
71-
</details>
70+
</details>

0 commit comments

Comments
 (0)