So I am creating a basic todo app using express and mongodb at the backend, I have a task schema that looks like this :
var taskSchema = mongoose.Schema({
task: String,
time:Date,
done:Boolean,
id:Number
});
By default the done is not set, but in the frontend I have a unordered list and bunch of lines and each line has a checkbox next to it , I want that when the user selects a list of tasks from checkboxes and click on done button it should go as a post request and mongodb should update all tasks at once , is it possible? Is my approach correct?