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

  • conditions: These are the query conditions (or _id for findByIdAndUpdate) used to find documents to update
  • update: This is an object containing the fields and values to set
  • options: This is an object specifying options for this operation (see more details about this in just a moment)
  • callback: This is the function to run after a successful operation

The options differ depending on the call made. The ...

From

Cover of Mongoose for Application Development

Note

update method arguments