Skip to content

Instantly share code, notes, and snippets.

{
"_id": ObjectId("..."),
"text": "This is the original comment.",
"user": "Alice",
"timestamp": ISODate("2023-10-02T12:00:00Z"),
"replies": [
{
"text": "This is a reply to the original comment.",
"user": "Bob",
"timestamp": ISODate("2023-10-02T12:10:00Z"),
{
"_id": ObjectId("..."),
"title": "Moby Dick",
"author": "Herman Melville",
"subset_reviews": [
{"user": "Alice", "rating": 5, "comment": "Loved it!", "date": ISODate("2023-10-01T10:00:00Z")},
{"user": "Bob", "rating": 4, "comment": "Good read.", "date": ISODate("2023-09-29T10:30:00Z")},
// 리뷰 3개 생략
]
}
{
"_id": ObjectId("..."),
"city": "New York",
"month": "October",
"daily_date": [
{"day": 1, "temperature": null, "condition": null},
{"day": 2, "temperature": null, "condition": null},
]
}
{
"_id": ObjectId("..."),
"student_name": "John",
"standard_courses": ["Math", "Science", "History"],
"new_courses": ["Advanced Astrophysics", "Special Language Studies"]
}
{
"_id": ObjectId("..."),
"product_name": "Laptop XYZ",
"reviews": [
{"user": "Alice", "rating": 5},
{"user": "Bob", "rating": 4}
],
"computed_avg_rating": 4.5,
"total_reviews": 200
}
{
"_id": ObjectId("..."),
"title": "Understanding MongoDB Patterns",
"content": "...",
"approximate_views": 5000,
"exact_views": 5123,
"last_update": ISODate("2023-10-06T14:30:00Z")
}
// products collection
{
"_id": ObjectId("50if1ghbbcf86cd799439111"),
"product_name": "Laptop ABC",
"price": 1200,
"speces": {...},
"reviews": [...],
// 기타 제품 정보
}
{
"_id": ObjectId("..."),
"username": "alice123",
"email": "alice@email.com",
"birthdate": ISODate("1990-01-01"),
"schema_version": 1
},
{
"_id": ObjectId("..."),
"username": "bob456",
// 문서 1
{
"_id": ObjectId("..."),
"patient_id": "P45678",
"type": "surgical",
"surgery_name": "Appendectomy",
"surgeon": "Dr.Smith",
"date": ISODate("2023-10-04T10:00:00Z")
},
// 문서 2
{
"_id": ObjectId("..."),
"product_name": "Smartphone XYZ",
"category": "Electronics",
"attributes": [
{"name": "color", "value": "black"},
{"name": "storage", "value": "128GB"},
{"name": "camera", "value": "12MP"},
{"name": "battery", "value": "4000mAh"}
]