MongoDB

MongoDB Query Documents

In this tutorial, we will see some collections and document operations. Drop a collection in Mongo DB: The command is “db.collectionName.drop()”. Example: Write “db.testCollection.drop()”, and then press CTRL + ENTER. It will delete the testCollection collection from the database. Note: We are using testDB database, and collection as testCollection. Steps to inserting bulk documents one at …

MongoDB Query Documents Read More »