Skip to content

Commit 7b39440

Browse files
committed
Added icons to pages
1 parent 9b270c0 commit 7b39440

21 files changed

+48
-48
lines changed

docs/1-mongodb-atlas/setup-lab.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
description: Setting up your MongoDB Atlas account, importing Library data
33
---
44

5-
# Set up Lab
5+
# 👐 Set up Lab
66

77
To follow along you'll need:
88
- a MongoDB Atlas account
99
- test data. In this case, this is books, authors and reviews data for a library management system.
1010

11-
💻 To get both, open the [Intro Lab](https://mongodb-developer.github.io/intro-lab/docs/intro) and follow it (only takes 10-15 mins) to get your database ready. Return here when finished!
11+
👐 To get both, open the [Intro Lab](https://mongodb-developer.github.io/intro-lab/docs/intro) and follow it (only takes 10-15 mins) to get your database ready. Return here when finished!

docs/20-what-is-aggregation/1-what-is-aggregation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Learn what is an Aggregation Pipeline
33
---
44

5-
# What is an Aggregation Pipeline
5+
# 📘 What is an Aggregation Pipeline
66

77
![](/img/20-what-is-aggregation/aggregation-pipeline.png)
88

docs/20-what-is-aggregation/2-sql-vs-aggregation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Let's compare SQL with an Aggregation Pipeline
33
---
44

5-
# SQL vs Aggregations
5+
# 📘 SQL vs Aggregations
66

77
## SQL
88

docs/20-what-is-aggregation/3-structure-aggregation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: See the parts that compose an Aggregation Pipeline
33
---
44

5-
# Structure of an aggregation pipeline
5+
# 📘 Structure of an aggregation pipeline
66

77
To interact with a relational database we typically use SQL, a 4th Generation language to access our data. With MongoDB we instead get data and transform it in incremental steps.
88

docs/30-simple-queries/0-using-library-database.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Tabs from '@theme/Tabs';
22
import TabItem from '@theme/TabItem';
33

4-
# Using the library database
4+
# 👐 Using the library database
55

66
## Select the library database
77

docs/30-simple-queries/1-empty-aggregation.mdx

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

4-
# Empty aggregation pipeline
4+
# 👐 Empty aggregation pipeline
55

66
## An empty aggregation
77

@@ -31,7 +31,7 @@ db.authors.aggregate([])
3131

3232
We can iterate over the returned cursor and get more documents typing `it`.
3333

34-
💻 Return all the documents in the `books` collection and iterate to get the next page of books.
34+
👐 Return all the documents in the `books` collection and iterate to get the next page of books.
3535

3636
<details>
3737
<summary>Answer</summary>
@@ -56,7 +56,7 @@ A [cursor](https://www.mongodb.com/docs/manual/reference/method/js-cursor/) has
5656
cursor.itcount()
5757
```
5858

59-
💻 In our previous example with the empty aggregation, to check the size of the returned cursor, what should we type in?
59+
👐 In our previous example with the empty aggregation, to check the size of the returned cursor, what should we type in?
6060

6161
<details>
6262
<summary>Answer</summary>

docs/30-simple-queries/2-match.mdx

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

4-
# $match
4+
# 👐 $match
55

66
The $match operator is used in conjunction with the aggregation framework to filter documents in a collection. It takes a document as input and returns a new document containing only the documents that match the specified criteria. The syntax for the $match operator is as follows:
77

@@ -52,7 +52,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
5252
</Tabs>
5353

5454

55-
💻 Return all the `books` that have exactly 100 pages.
55+
👐 Return all the `books` that have exactly 100 pages.
5656

5757
<details>
5858
<summary>Answer</summary>
@@ -119,7 +119,7 @@ IF pages == 100 AND totalInventory == 2 {
119119
}
120120
```
121121

122-
💻 Return all the `books` from 2015 that have exactly 100 pages.
122+
👐 Return all the `books` from 2015 that have exactly 100 pages.
123123

124124
<details>
125125
<summary>Answer</summary>
@@ -150,7 +150,7 @@ db.books.aggregate([{$match: {$and: [{pages: 100}, {year: 2015}]}}])
150150
</div>
151151
</details>
152152

153-
💻 How many are they?
153+
👐 How many are they?
154154

155155
<details>
156156
<summary>Answer</summary>
@@ -205,7 +205,7 @@ db.books.aggregate([{$match: {pages: 100, totalInventory: 2}}])
205205
</Tabs>
206206

207207

208-
💻 Return all the `books` from 2015 that have exactly 100 pages, using the simple $and notation
208+
👐 Return all the `books` from 2015 that have exactly 100 pages, using the simple $and notation
209209

210210
<details>
211211
<summary>Answer</summary>

docs/30-simple-queries/3-project.mdx

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

4-
# $project
4+
# 👐 $project
55

66
## Including fields in a projection
77

@@ -105,7 +105,7 @@ db.books.aggregate([{$project: {attributes: 0}}])
105105
</Tabs>
106106

107107

108-
💻 Show only `title` and `cover`.
108+
👐 Show only `title` and `cover`.
109109

110110
<details>
111111
<summary>Answer</summary>
@@ -132,7 +132,7 @@ db.books.aggregate([{$project: {title: 1, cover: 1}}])
132132

133133
## Excluding fields
134134

135-
💻 Exclude the `cover`, `attributes` and `_id` fields from the result.
135+
👐 Exclude the `cover`, `attributes` and `_id` fields from the result.
136136

137137
<details>
138138
<summary>Answer</summary>

docs/30-simple-queries/4-limiting-results.mdx

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

4-
# $limit
4+
# 👐 $limit
55

66
If we return too many documents, but we're interested just in a few, we can limit the number of documents returned using `$limit`
77

@@ -22,7 +22,7 @@ db.books.aggregate([{$limit: 1}])
2222

2323
This returns just one document.
2424

25-
💻 Return just 7 `books`.
25+
👐 Return just 7 `books`.
2626

2727
<details>
2828
<summary>Answer</summary>

docs/30-simple-queries/5-combining-them-all.mdx

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

4-
# Combining stages
4+
# 👐 Combining stages
55

66
Up until now, we've just been using one stage in the pipeline. But the power of the aggregation pipeline is that we can use many stages, and the output of one will be the input of the next. Think of it as UNIX pipes or using functional programming with `map`, `filter`, `reduce`, `flatmap`, etc.
77

@@ -33,7 +33,7 @@ db.books.aggregate([
3333
</Tabs>
3434

3535

36-
💻 Get 15 books from 1985 with 150 pages. Show only the `title`, `year`, `totalInventory` and `available` books. If you don't remember which fields we have, you can refer to [the sample document](/docs/simple-queries/project).
36+
👐 Get 15 books from 1985 with 150 pages. Show only the `title`, `year`, `totalInventory` and `available` books. If you don't remember which fields we have, you can refer to [the sample document](/docs/simple-queries/project).
3737

3838
<details>
3939
<summary>Answer</summary>

0 commit comments

Comments
 (0)