Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose add new field to schema

Model.findOneAndUpdate(
  query,  //filter
  update, //data to update
  { //options
    strict: false
  }
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongoose #add #field #schema
ADD COMMENT
Topic
Name
2+7 =