Skip to content

Commit

Permalink
Fixing groupId in tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreniche committed Jun 18, 2024
1 parent ac67fd2 commit ec0340e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/30-simple-queries/2-match.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre

## Matching book documents

<Tabs groupId="aggregations-year">
<Tabs groupId="aggregations">
<TabItem value="atlas" label="Atlas UI">

First, make sure you select the `books` collection in the Atlas UI.
Expand Down Expand Up @@ -58,7 +58,7 @@ The `<expression>` portion of the $match operator can be any valid MongoDB expre
<summary>Answer</summary>
<div>

<Tabs groupId="aggregations-pages">
<Tabs groupId="aggregations">
<TabItem value="atlas" label="Atlas UI">
```js
[
Expand Down Expand Up @@ -86,7 +86,7 @@ If we need to add more conditions using AND, we can do it with the `$and` operat

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:

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

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

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

<Tabs groupId="aggregations-shorthand-and-exercise">
<Tabs groupId="aggregations">
<TabItem value="atlas" label="Atlas UI">
```js
[
Expand Down
2 changes: 1 addition & 1 deletion docs/30-simple-queries/3-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ A document from the `books` collection looks like:
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:


<Tabs groupId="project">
<Tabs groupId="aggregations">
<TabItem value="atlas" label="Atlas UI">
```js
[
Expand Down

0 comments on commit ec0340e

Please sign in to comment.