Possible bug with "Chain Search Query Helpers to Narrow Search Results" challenge

As I pointed out in this thread.

It seems that .remove is being deprecated, I had to change it on server.js and myApp.js to .deleteOne and .deleteMany accordingly

Maybe the challenge needs to be updated or I just had bad luck.

Regards
Guido

Hello there,

Provided the correct version of mongoose is used, the functionality should be consistent.

Deprecations do not prevent the code from working. They are just warnings for future versions of an API.

Hope this clarifies.

1 Like