Mongoose Document.prototype.$op API
The Document API.prototype.$op property of the Mongoose API is used on the Document model. It allows us to determine the ongoing operation mongoose in performing or executing on the document object. It may be null, save, validate or remove. Let us understand the $op property using an example. Syntax