Currently does not return changed or deleted data from a collection in the result
In version 5.2 of mongo, it is possible to use the function findOneAndUpdate() or findOneAndDelete passing as option returnDocument 'after' or 'before' to return the changed or deleted result.
It's cool any mongoDB command has the option to return the result in the console.
Note: I noticed that apparently there is a conflict when updating to a new version of mongoDB
Hello,
Currently does not return changed or deleted data from a collection in the result
In version 5.2 of mongo, it is possible to use the function findOneAndUpdate() or findOneAndDelete passing as option returnDocument 'after' or 'before' to return the changed or deleted result.
It's cool any mongoDB command has the option to return the result in the console.
Note: I noticed that apparently there is a conflict when updating to a new version of mongoDB