I want all the CRUD operations to be persistent in my mongodb database,
I want express code for handling the crud operation, and want to use datamanager,
I also want to send and extra parameter i.e. email along with datamanager,
this is the schema i am using,
const userScheduleSchema = new mongoose.Schema({
email : {
type : String,
required : true
},
schedule : [
{
Subject: {
type: String,
required: true
},
Location: {
type: String
},
StartTime: {
type: Date,
required: true
},
EndTime: {
type: Date,
required: true
},
isAllDay: {
type: Boolean,
default: false
},
Description: {
type: String
},
RecurrenceRule: {
type: String
}
}
]
})