Esquema Mongoose Decimals Cast

var intHolderSchema = new mongoose.Schema({
  'integer': { type: Number, set: function (v) { return Math.round(v) ;}}
}) ;
florinrelea