Skip to content

Commit af226a0

Browse files
authored
Update 1-WHERE.mdx
1 parent a59e078 commit af226a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/40-CRUD/1-WHERE.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Now, translate the following into a MongoDB query.
115115
<summary>Answer</summary>
116116
<div>
117117
```js
118-
db.books.find({ genres: "Science", pages: {$gt: 300} });
118+
db.books.find({ "genre.name": "Science", pages: {$gt: 300} });
119119
```
120120
</div>
121121
</details>

0 commit comments

Comments
 (0)