Skip to content

Commit 171d617

Browse files
authored
Merge branch 'main' into patch-1
2 parents 410dd52 + 3849d85 commit 171d617

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
2020

2121
## Matching book documents
2222

23-
<Tabs groupId="aggregations-year">
23+
<Tabs groupId="aggregations">
2424
<TabItem value="atlas" label="Atlas UI">
2525

2626
First, make sure you select the `books` collection in the Atlas UI.
2727
<Screenshot src="/img/30-simple-queries/select-books-collection.png" url="http://cloud.mongodb.com/" alt="Atlas UI database deployment with the books collection highlighted." />
2828

29-
Then, navigate to the `Aggregation` tab and click `Add Stage`.
29+
Then, navigate to the `Aggregation` tab and click `</> TEXT`.
3030
<Screenshot src="/img/30-simple-queries/new-aggregation.png" url="http://cloud.mongodb.com/" alt="Atlas UI database deployment with aggregation tab highlighted." />
3131

3232
Say we want all the books from the year 2010. We can add a `$match` stage to filter the documents from the books collection:
@@ -58,7 +58,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
5858
<summary>Answer</summary>
5959
<div>
6060

61-
<Tabs groupId="aggregations-pages">
61+
<Tabs groupId="aggregations">
6262
<TabItem value="atlas" label="Atlas UI">
6363
```js
6464
[
@@ -84,9 +84,9 @@ db.books.aggregate([{$match: {pages: 100}}])
8484

8585
If we need to add more conditions using AND, we can do it with the `$and` operator.
8686

87-
If we want all the books with 100 pages with exactly `totalInventory` 2 we can use an `$and` operator. This takes and array of documents with all the conditions that should be true for the AND to succeed:
87+
If we want all the books with 100 pages with exactly `totalInventory` 2 we can use an `$and` operator. This takes an array of documents with all the conditions that should be true for the AND to succeed:
8888

89-
<Tabs groupId="aggregations-and">
89+
<Tabs groupId="aggregations">
9090
<TabItem value="atlas" label="Atlas UI">
9191
```js
9292
[
@@ -187,7 +187,7 @@ db.books.aggregate([{$match: {$and: [{pages: 100}, {year: 2015}]}}]).itcount()
187187

188188
We can do an implicit AND just passing a document with all the conditions (instead of an array of documents):
189189

190-
<Tabs groupId="aggregations-shorthand-and">
190+
<Tabs groupId="aggregations">
191191
<TabItem value="atlas" label="Atlas UI">
192192
```js
193193
[
@@ -211,7 +211,7 @@ db.books.aggregate([{$match: {pages: 100, totalInventory: 2}}])
211211
<summary>Answer</summary>
212212
<div>
213213

214-
<Tabs groupId="aggregations-shorthand-and-exercise">
214+
<Tabs groupId="aggregations">
215215
<TabItem value="atlas" label="Atlas UI">
216216
```js
217217
[
@@ -228,4 +228,4 @@ db.books.aggregate([{$match: {pages: 100, year: 2015}}])
228228
</TabItem>
229229
</Tabs>
230230
</div>
231-
</details>
231+
</details>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ A document from the `books` collection looks like:
6262
If we're interested just in the titles, we can use `$project` to select just the fields we're interested in. As an example, to get just the book's title and year we'll write:
6363

6464

65-
<Tabs groupId="project">
65+
<Tabs groupId="aggregations">
6666
<TabItem value="atlas" label="Atlas UI">
6767
```js
6868
[

docs/40-using-arrays/2-search-inside-objects-in-arrays.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 👐 Searching inside Objects in arrays
22

3-
In our books we're using the [Attribute Pattern](https://www.mongodb.com/developer/products/mongodb/attribute-pattern/) to have different attributes in our documents. As we can see in the [sample doc](/docs/simple-queries/project) we have an `attributes` array, containing several objects, each with the same structure:
3+
In the books collection, we're using the [Attribute Pattern](https://www.mongodb.com/developer/products/mongodb/attribute-pattern/) to store different attributes in our documents. As we can see in the [sample doc](/docs/simple-queries/project), we have an `attributes` array, containing several objects, each with the same structure:
44

55
```js
66
attributes: [

0 commit comments

Comments
 (0)