Mongoose plugin adding created and modified fields to a schema
mongoose plugin that adds created and modified fields to a mongoose schema.
npm install mongoose-createdmodified
var mongoose = ;var createdModifiedPlugin = createdModifiedPlugin;...var SampleSchema =...;SampleSchema;var SampleModel = db;
mongoose = require 'mongoose'createdModifiedPlugin = require 'mongoose-createdmodified'createdModifiedPlugin...SampleSchema =...SampleSchemaplugin createdModifiedPluginindex: trueSampleModel = dbmodel"SampleModel"SampleSchema
Please use the github repository to notify bugs and make pull requests.
This software is © 2012 Marco Pantaleoni, released under the MIT licence. Use it, fork it.
See the LICENSE file for details.