Skip to content

Commit

Permalink
Fixed findOneAndReplace examples
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolykopyl committed Mar 13, 2022
1 parent ab97a17 commit 7496cf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -2836,11 +2836,11 @@ Model.findByIdAndDelete = function(id, options, callback) {
*
* ####Examples:
*
* A.findOneAndReplace(conditions, options, callback) // executes
* A.findOneAndReplace(conditions, options) // return Query
* A.findOneAndReplace(conditions, callback) // executes
* A.findOneAndReplace(conditions) // returns Query
* A.findOneAndReplace() // returns Query
* A.findOneAndReplace(filter, replacement, options, callback) // executes
* A.findOneAndReplace(filter, replacement, options) // return Query
* A.findOneAndReplace(filter, replacement, callback) // executes
* A.findOneAndReplace(filter, replacement) // returns Query
* A.findOneAndReplace() // returns Query
*
* @param {Object} filter Replace the first document that matches this filter
* @param {Object} [replacement] Replace with this document
Expand Down

0 comments on commit 7496cf7

Please sign in to comment.