Problem Description
When running a deprecated CRUD method in mongosh, such as db.coll.remove(), it does not suggest db.coll.findOneAndDelete() as an alternative.
Steps to Reproduce
In mongosh, run db.coll.remove()
Expected Results
mongosh outputs:
DeprecationWarning: Collection.remove() is deprecated. Use deleteOne, deleteMany, findOneAndDelete, or bulkWrite.
Actual Results
mongosh outputs:
DeprecationWarning: Collection.remove() is deprecated. Use deleteOne, deleteMany or bulkWrite.
Additional Notes
This also applies to db.coll.update() and db.coll.save(), which should suggest db.coll.findAndModify