mongoose-updated-at
Another mongoose updated-at module. Gives you some options to change the path and indexing object.
npm install --save mongoose-updated-at
Usage
'use strict'; var mongoose = ;var Schema = mongooseSchema; var MySchema = name: String; MySchema;
To pass in options:
MySchema;
Options
updatedAtPath
(String) - The path to add the updatedAt property. Default:'updatedAt'
index
(Mixed) - The indexing options given to this field. See http://mongoosejs.com/docs/api.html#schematype_SchemaType-index. Default:false