Model.findByIdAndRemove()

What is your hint or solution suggestion?

Model.findByIdAndRemove(id, options, callback)

callback: (err, removedDoc)=>if(err)...; done(null, removedDoc)

Challenge: Delete One Document Using model.findByIdAndRemove

Link to the challenge:

https://www.freecodecamp.org/learn/apis-and-microservices/mongodb-and-mongoose/delete-one-document-using-model.findbyidandremove

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