Deprecated message on mongoose course

Hi! I got this message during the course:

DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMane, or bulkWrite instead.


Will the course be updated later? I completed the task, but I wonder if someone else would forgive to look at the console and use deprecated functions (anyways, good for old code, theres also the docs to learn)

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36.

Challenge: Delete Many Documents with model.remove()

Link to the challenge:

Welcome there.

The platform and content is constantly being updated, and worked on.

As it stands, nothing specific is being done to redo sections, because the whole curriculum is being overhauled for version 7 of the curriculum: Python Certifications are Now Live, and Other freeCodeCamp Version 7.0 Curriculum Updates

This takes time, but, as you have pointed out, old code is still the majority. The React section of the curriculum is a prime example:

  • If you only learnt the new functional component syntax, then you would be unprepared for most codebases written using React (freeCodeCamp included).

Getting back to your code:

  • Warnings are all-to common. Do not be surprised by them - especially when dealing with an NPM managed project.
  • Warnings are just that - warnings. If you get an error, worry. Otherwise, be aware of the warning’s implications, and continue as normal.

Hope this clarifies

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.