mongoose-allrequired
v0.1.1
Published
Simple mongoose plugin for fixed schemas
Downloads
8
Readme
mongoose-allRequired
Simple mongoose plugin for fixed schemas
USING
var allRequired = require('mongoose-allrequired');
User = new Schema({
_id: Number,
login: String,
password: String,
sessionId: String,
role: String
});
//all fields will be required
User.plugin(allRequired);