I think that
findOneAndUpdatecarries out an atomic operation, so I’m assuming thatupdateOnedoes not.
Why are you assuming that?
findOneAndUpdate returns a document whereas updateOne does not (it just returns the _id if it has created a new document).
I think that’s the main difference. So the use case of updateOne is when you don’t need the document and want to save a bit of time and bandwidth.