mongoose-date
v1.0.0
Published
Mongoose Plugin that saves creation and modification dates
Downloads
3
Readme
Mongoose Date plugin
const date = require("rojo2-mongoose-date");
const password = require("rojo2-mongoose-password");
const {Schema} = require("mongoose");
const UserSchema = new Schema({
email: {
type: String,
unique: true
}
});
UserSchema.plugin(date);
UserSchema.plugin(password);
Made with ❤ by ROJO 2 (http://rojo2.com)