File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ IF pages == 100 AND totalInventory == 1 {
133
133
}
134
134
```
135
135
136
- 👐 Return all the ` books ` from 2009 that have exactly 192 pages.
136
+ 👐 Return all the ` books ` from 2015 that have exactly 100 pages.
137
137
138
138
<details >
139
139
<summary >Answer</summary >
@@ -146,8 +146,8 @@ IF pages == 100 AND totalInventory == 1 {
146
146
{
147
147
$match: {
148
148
$and: [
149
- { pages: 192 },
150
- { year: 2009 }
149
+ { pages: 100 },
150
+ { year: 2015 }
151
151
]
152
152
}
153
153
}
@@ -160,8 +160,8 @@ db.books.aggregate([
160
160
{
161
161
$match: {
162
162
$and: [
163
- { pages: 192 },
164
- { year: 2009 }
163
+ { pages: 100 },
164
+ { year: 2015 }
165
165
]
166
166
}
167
167
}
@@ -237,7 +237,7 @@ db.books.aggregate([
237
237
</Tabs >
238
238
239
239
240
- 👐 Return all the ` books ` from 2009 that have exactly 192 pages, using the shorthand ` $and ` notation:
240
+ 👐 Return all the ` books ` from 2015 that have exactly 100 pages, using the shorthand ` $and ` notation:
241
241
242
242
<details >
243
243
<summary >Answer</summary >
@@ -248,14 +248,14 @@ db.books.aggregate([
248
248
``` js
249
249
[
250
250
{
251
- $match: {pages: 192 , year: 2009 }
251
+ $match: {pages: 100 , year: 2015 }
252
252
}
253
253
]
254
254
```
255
255
</TabItem >
256
256
<TabItem value = " mongodb-shell" label = " MongoDB Shell" >
257
257
``` js
258
- db .books .aggregate ([{$match: {pages: 192 , year: 2009 }}])
258
+ db .books .aggregate ([{$match: {pages: 100 , year: 2015 }}])
259
259
```
260
260
</TabItem >
261
261
</Tabs >
You can’t perform that action at this time.
0 commit comments