$set in updateOne is not showing modifiedCount to be 1

Hi, can you help me with the issue hilighted as subject in this thread?

You do not give a lot of information for us to help you. My guess is that your criteria to select the document to update is wrong and does not select any document. Try the same criteria in a find to see what is selected.


Thanks a lot @steevej-1495! You got it right, I was facing this problem while doing the tickets on commentsDAO.js.