There was an error while loading. Please reload this page.
1 parent 445a76d commit f450083Copy full SHA for f450083
1 file changed
docs/migrating_to_8.md
@@ -87,6 +87,9 @@ In Mongoose 7, `findOneAndRemove()` was an alias for `findOneAndDelete()` that M
87
Mongoose 8 no longer supports `findOneAndRemove()`.
88
Use `findOneAndDelete()` instead.
89
90
+Similarly, Mongoose 8 no longer supports `findByIdAndRemove()`, which was an alias for `findByIdAndDelete()`.
91
+Please use `findByIdAndDelete()` instead.
92
+
93
## Removed `count()` {#removed-count}
94
95
`Model.count()` and `Query.prototype.count()` were removed in Mongoose 8. Use `Model.countDocuments()` and `Query.prototype.countDocuments()` instead.
0 commit comments