Skip to content

Commit c6a69b8

Browse files
Jaime Salas ZancadaJaime Salas Zancada
Jaime Salas Zancada
authored and
Jaime Salas Zancada
committed
added how to remove elements on mongo
2 parents 0ad3d77 + e71a76f commit c6a69b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: server-mongo/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ mongo
4747
```bash
4848
> db.<collection>.find()
4949
```
50+
51+
* Remove element by Id from mongo console
52+
```javascript
53+
db.books.remove({"_id": ObjectId("5d322fcba8a0243b90fd2f95")});
54+
```

0 commit comments

Comments
 (0)