Difference between findByIdAndRemove() and findByIdAndDelete()

Hello everyone!

I’m going through the MongoDB/Mongoose section right now, and in the Mongoose documentation I see two similar looking methods:


The documentation on them is fairly similar, with a little more written about findByIdAndRemove. Is there any reason to use one over the other that I just can’t see yet?

Google turns up this on SO: https://stackoverflow.com/questions/54081114/what-is-the-difference-between-findbyidandremove-and-findbyidanddelete-in-mongoo