MongoDB is an open-source, document-oriented database that falls under the NoSQL category. Instead of tables and rows like traditional relational databases (SQL), MongoDB stores data as JSON-like documents in a format called BSON (Binary JSON).
javascript
// A sample document in a 'users' collection
{
"_id": ObjectId("635f8e9e4a3b83d8a7c2c1b1"),
"name": "Aung Aung",
"age": 30,
"courses": ["History", "Math"],
"address": {
"city": "Yangon",
"street": "Main St"
}
}You should see
(This is a sample of what a single data record — a document — looks like in MongoDB)