Is it feasible to avoid fetching any data from the database after performing the SOME_MODEL.findOneAndUpdate()
operation?
I could potentially utilize the lean()
and select()
methods.
However, all I really require is a callback confirming the successful update that can be sent back to the client using response.sendStatus(200)
.
Are the unnecessary documents returned from the database leading to wastage of network resources during transfer?