O'Reilly logo
  • Patrick S thinks this is interesting:

  • update(): This method updates matching documents in the database without returning them
  • findOneAndUpdate(): This method has the same approach as findOne that we looked at earlier, but writes the updates to the database before returning the found instance to the callback
  • findByIdAndUpdate(): This method is the same as


    Cover of Mongoose for Application Development


    methods for updating data