Skip to content

Commit

Permalink
Merge pull request #11366 from laissonsilveira/5.x
Browse files Browse the repository at this point in the history
Broken link from findandmodify method deprecation
  • Loading branch information
vkarpov15 committed Feb 13, 2022
2 parents d2b846f + 05ce577 commit a2ec28d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/deprecations.md
Expand Up @@ -60,7 +60,7 @@ If you use [`Model.findOneAndUpdate()`](/docs/api.html#model_Model.findOneAndUpd
by default you'll see one of the below deprecation warnings.

```
DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated. See: https://mongoosejs.com/docs/deprecations.html#findandmodify
DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated. See: https://mongoosejs.com/docs/5.x/docs/deprecations.html#findandmodify
DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.
```

Expand Down
2 changes: 1 addition & 1 deletion lib/query.js
Expand Up @@ -3777,7 +3777,7 @@ const _legacyFindAndModify = util.deprecate(function(filter, update, opts, cb) {
collection.collection._findAndModify(filter, sort, update, opts, _cb);
}, 'Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the ' +
'`useFindAndModify` option set to false are deprecated. See: ' +
'https://mongoosejs.com/docs/deprecations.html#findandmodify');
'https://mongoosejs.com/docs/5.x/docs/deprecations.html#findandmodify');

/*!
* Override mquery.prototype._mergeUpdate to handle mongoose objects in
Expand Down

0 comments on commit a2ec28d

Please sign in to comment.