MongoDB is based on a NoSQL database that is used for storing data in a key-value pair. Its working is based on the concept of document and collection. It is also an open source, a document-oriented, cross-platform database system that is written using C++. In this chapter, you will learn more about MongoDB and its importance.
Like another database scripting/query languages such as SQL, MySQL, and Oracle, MongoDB also provides a high performance, scalability as well as availability for managing the database. MongoDB is one of the most accepted NoSQL database and stores data in a […]
NoSQL is abbreviated as "not only SQL" is introduced to act as an alternative for traditional relational databases. In this chapter, you will learn about the various benefits that NoSQL has over other traditional database management systems.
Since you are now familiar with the various features of MongoDB, and its characteristics and how it is related to NoSQL, it is time to know the history of Mongo DB. In this chapter, you will briefly learn the history of MongoDB.
To get started with MongoDB, you have to install it in your system. You need to find and download the latest version of MongoDB, which will be compatible with your computer system. In this chapter, you will learn how to setup a complete environment to start working with MongoDB.
For storing data in a MongoDB, you need to create a database first. This will allow you to systematically organize your data so that it can be retrieved as per requirement. If you wish to delete a database, MongoDB also allows you to delete that. In this chapter, you will learn how to create and delete a database in MongoDB.
Data type is an essential component of a language. MongoDB stores data in BSON format. In this chapter, you will learn about the different data types that exist in MongoDB, along with their implementation techniques.
Collections are like that of tables of RDBMS and are capable enough to store documents of diverse or dissimilar types. Creation and removal of collections in MongoDB can be done in specific ways. In this chapter, you will learn about the creation of collections in a database created using MongoDB.
For dropping a collection in MongoDB, you have to make use of the collection.drop() method. This will eliminate the collection from the database completely and will not leave any indexes that are connected to this drop collection.
The insert operation is one of the crucial operations in the database system. In this chapter, you will learn about the different concepts and methods that are related to the insert operation in MongoDB.
A query in a database system is a command that is used for extracting data from a database and display it in a readable form. In this chapter, you will learn about the different ways of how queries can be made using MongoDB.
Protection queries are a particular type of MongoDB queries where you can specify fields you want to get in the output. In this chapter, you will learn about MongoDB Projection Queries which can be used for an additional purpose.
MongoDB allows you to specify the maximum number of documents to return using limit() method, and it is also possible to skip some documents from a MongoDB database by using skip() method. In this chapter, we will learn about both functions.
After creating an updating the document, a situation might occur where you want to delete any document or a set of documents. MongoDB also allows you to delete any particular document or multiple collections of documents. In this chapter, you will learn about how to delete documents from a MongoDB database.
In MongoDB, aggregation can be defined as the operation that is used for processing various types of data in the collection, which returns a calculated result. In this chapter, you will learn about the concept of aggregation that s supported by MongoDB.