Data TypePurposeExample
ObjectIdUnique ID for each documentObjectId("64b9d7f3e4b0c123456789ab")
StringStore text"name": "John"
IntegerStore whole numbers"age": 25
DoubleStore decimal numbers"price": 99.99
BooleanStore true or false"isActive": true
DateStore date and time"createdAt": ISODate("2026-07-30")
ArrayStore multiple values"skills": ["Java", "MongoDB"]
Object (Embedded Document)Store nested data"address": { "city": "Delhi" }
NullRepresent no value"phone": null
{
  "_id": ObjectId("64b9d7f3e4b0c123456789ab"),
  "name": "Alice",
  "age": 22,
  "salary": 45000.50,
  "isActive": true,
  "joiningDate": ISODate("2026-07-30"),
  "skills": ["Java", "MongoDB"],
  "address": {
    "city": "Mumbai",
    "state": "Maharashtra"
  },
  "phone": null
}