Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add an object to an array mongosse

List.findOne({name: listName}, function(err, result){
      if (result) {
      result.items.push(iteme);
      result.save();
      res.redirect("/" + listName);
      }
 
PREVIOUS NEXT
Tagged: #add #object #array #mongosse
ADD COMMENT
Topic
Name
1+3 =