June 2018
Intermediate to advanced
348 pages
8h 19m
English
Lastly, to delete a document, we use the deleteOne or deleteMany methods. For example, again insert the Peru team and run the following code:
> db.teams.deleteOne({"code": "PER"}){ "acknowledged" : true, "deletedCount" : 1 }
Cool! Now we are in a good shape to learn about Mongoose and how to integrate our API with MongoDB. Keep reading!!
Read now
Unlock full access