MongoDB is a non-relational document database that provides support for JSON-like storage. The MongoDB database has a flexible data model that enables you to store unstructured data, and it provides full indexing support, and replication with rich and intuitive APIs.MongoDB is designed to make data easy to access, and rarely to require joins or transactions, but when you need to do complex querying, it's more than up to the task. The MongoDB Query API allows you to query deep into documents, and even perform complex analytics pipelines with just a few lines of declarative code.
The double data type is used to store floating point values. Let’s see with an example, how we can do it.
This is the most commonly used MongoDB data types, BSON strings are UTF-8. Drivers for each programming language convert from the string format of the language to UTF-8 while serializing and de-serializing BSON.
Object data type stores embedded documents. If a document contains another document in the form of the key-value pair then such type of document is known as an embedded document.
These MongoDB data types stores array. A set of values are represented as an array. This data type can store multiples of values and data types.