0.1.1 • Published 10 years ago
mongoose-allrequired v0.1.1
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);