I want to get updated documents. This is my original code and it succesfully updates but doesnt return the document.
collection.update({ \"code\": req.bo
The solution is to set: {returnOriginal: false}.
collection.findOneAndUpdate( whereObj, updateObj, {returnOriginal: false});