MongoDB – Environment Let us now see how to install MongoDB on Windows. Install MongoDB On Windows To install MongoDB on Windows, first download the latest release of MongoDB from . Enter the required details, select the Server tab, in it you can choose the version of MongoDB, operating system and, packaging as: Now install […]
MongoDB – Data Modelling Data in MongoDB has a flexible schema.documents in the same collection. They do not need to have the same set of fields or structure Common fields in a collection’s documents may hold different types of data. Data Model Design MongoDB provides two types of data models: — Embedded data model and […]
MongoDB – Drop Collection In this chapter, we will see how to drop a collection using MongoDB. The drop() Method MongoDB”s db.collection.drop() is used to drop a collection from the database. Syntax Basic syntax of drop() command is as follows − db.COLLECTION_NAME.drop() Example First, check the available collections into your database mydb. >use mydb switched […]