Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is not possible for the Mongoose pre-update document middleware to prevent the updated field from being written to the database. The purpose of the middleware is to perform some action before the document is updated, but it cannot control what data is ultimately written to the database.