Skip to content

Commit 1a56590

Browse files
committed
added how to remove mongo
1 parent e716150 commit 1a56590

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server-mongo/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ mongo
2525
```bash
2626
> db.<collection>.find()
2727
```
28+
29+
* Remove element by Id from mongo console
30+
```javascript
31+
db.books.remove({"_id": ObjectId("5d322fcba8a0243b90fd2f95")});
32+
```

0 commit comments

Comments
 (0)