meanie-mongoose-set-properties v2.0.4
meanie-mongoose-set-properties
A helper plugin for Mongoose to only set properties on a model that have changed, for use with Meanie Express Seed projects
Installation
You can install this package using npm
.
npm install meanie-mongoose-set-properties --save
Usage
The motivation for this plugin was a bug in Mongoose that would improperly mark all fields of a sub document as modified, even if none of the field values in the sub document had actually changed. This issue has since been fixed, but the plugin has some additional features that make comparing sub documents easier.
Issues & feature requests
Please report any bugs, issues, suggestions and feature requests in the meanie-mongoose-set-properties issue tracker.
Contributing
Pull requests are welcome! If you would like to contribute to Meanie, please check out the Meanie contributing guidelines.
Credits
- Meanie logo designed by Quan-Lin Sim
License
(MIT License)
Copyright 2016-2017, Adam Reis