Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jayceazua opened this issue Sep 14, 2018 · 3 comments
Closed

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

jayceazua opened this issue Sep 14, 2018 · 3 comments

Comments

@jayceazua
Copy link

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

@dacioromero
Copy link

I believe this is a problem with mongoose

@jayceazua
Copy link
Author

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

@dacioromero
Copy link

dacioromero commented Sep 26, 2018

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.

@ibirnam ibirnam closed this as completed Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants