Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

$push in mongoose

TodoModel.findByIdAndUpdate(
    todoId, 
    { $push: { subTasks: task } }
);
 
PREVIOUS NEXT
Tagged: #mongoose
ADD COMMENT
Topic
Name
8+2 =