Use the following database diagram for doing this exam:
Images
Tutorials
+ id: ObjectId
path: String
url: String
caption: String
+ createAt: Date
Comments
+_id: ObjectId
username: String
+ text: String
+ createAt: Date
Requirements:
- Using MongoDB Compass, create a database named "PE_Fall2024_B5". Create collections corresponding to the data in the given directory. Then, import data into the collections created in the database.
PE_Fall2024_B5
■Categories
Comments
Images
Tutorials
Question 1. (5 points)
In this question, you are asked to write an application (back-end given folder), that provide some
+ 100%
++
Zoom
Close
id: ObjectId
title: String
author: String
+ images:[
{
_id: ObjectId,
url: String,caption: String
}
comments: [{ObjectId}],
+ category: ObjectId
Categories
_id: ObjectId
name: String
description: String