xxxxxxxxxx
UserSchema.methods.toJSON = function() {
var obj = this.toObject(); //or var obj = this;
delete obj.password;
return obj;
}
module.exports = mongoose.model('User', UserSchema);
xxxxxxxxxx
Rules
1 You do not talk about ***** ****.
2 You DO NOT talk about ***** ****!
3 Someone yells "stop!", goes limp, taps out, the fight is over.
4 Only two guys to a fight.
5 One fight at a time.
6 No shirts, no shoes.
7 Fights will go on as long as they have to.
8 If this is your first time at ***** ****, you have to fight.