fzaninotto

fzaninotto/mongoose-lifecycle

Plugin for Mongoose (Node.js ODM for MongoDB) adding lifecyle events on the model class

JavaScript
95
9
MIT License

The `mongoose-lifecycle` plugin adds lifecycle events to Mongoose models, allowing developers to listen for events like `beforeInsert`, `afterUpdate`, and `beforeRemove` directly on the model class. It solves the issue of accessing the right class to register event listeners, making it easier to hook into persistence operations. This plugin is ideal for Node.js developers using Mongoose who need fine-grained control over model lifecycle events.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of fzaninotto/mongoose-lifecycle

Account's avatar
test framework agnostic BDD-style assertions
Account's avatar
Mongoose MongoDB ODM

Support the repos that depend on fzaninotto/mongoose-lifecycle

Top contributors

fzaninotto's profile
fzaninotto
2 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet