MongoDB is a
cross-platform document-oriented database program. Classified as a
NoSQL database program, MongoDB uses
JSON-like documents with
schema. MongoDB is developed by
MongoDB Inc. and licensed under the Server Side Public License (SSPL).Queries can return specific fields of documents and also include user-defined
JavaScript functions. Queries can also be configured to return a random sample of results of a given size.
Due to the default security configuration of MongoDB, allowing anyone to have full access to the database, data from tens of thousands of MongoDB installations has been stolen. Furthermore, many MongoDB servers have been held for ransom.In some failure scenarios where an application can access two distinct MongoDB processes, but these processes cannot access each other, it is possible for MongoDB to return stale reads. In this scenario it is also possible for MongoDB to roll back writes that have been acknowledged.