I have a mongo schema
const taskSchema=new Schema({
userID:{type:ObjectId,required:true},
task: {
type: String,
required: true,
trim: true,
maxlength: 30,
},
finalDate:{type:Date,required:true},
isFinished:{type:Boolean,required:true}
})
what I need to get all the documents with a particular UserID and update/delete . I can use the find method to find all the documents with the required user id . After that I am at a loss on what to do.There will be multiple documents with same user id . Any ideas on how to proceed will be a great help