O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deleting documents

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!!

We recommend that you use a GUI tool to explore your MongoDB data. We use Robo 3T or Robomongo. You can download it from its official page at https://robomongo.org.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required