MakeSchool-Tutorials / Node-Rotten-Potatoes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

6. Edit Route: Editing and Updating a Resource #17

jayceazua opened this issue · comments

Also, the findByIdAndUpdate is depreciated.
ERROR MESSAGE: (node:80671) DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.

commented

I believe this is a problem with mongoose

Dude, this is for the creators of the tutorial to update.

commented

It's a problem with Mongoose: it was using a depreciated call to MongoDB. There was an issue opened on their repository this exact warning. It should go away if you run npm up to update your packages.