Skip to content

Commit dca6c54

Browse files
Update 4-INSERT-DELETE.mdx
1 parent ab95284 commit dca6c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/40-CRUD/4-INSERT-DELETE.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ DELETE FROM reviews WHERE bookId = '0786222727';
6969
<summary>Answer</summary>
7070
<div>
7171
```js
72-
db.books.insertMany([
72+
db.reviews.insertMany([
7373
{
7474
text: "Thrilling end.",
7575
rating: 4,
@@ -105,7 +105,7 @@ DELETE FROM reviews WHERE bookId = '0786222727';
105105
<summary>Answer</summary>
106106
<div>
107107
```js
108-
db.books.deleteMany({"bookId": "0786222727"})
108+
db.reviews.deleteMany({"bookId": "0786222727"})
109109
```
110110
</div>
111111
</details>

0 commit comments

Comments
 (0)