mongoose schema number with decimal code example
Example: mongoose schema cast decimals
var intHolderSchema = new mongoose.Schema({
'integer': { type: Number, set: function (v) { return Math.round(v) ;}}
}) ;
var intHolderSchema = new mongoose.Schema({
'integer': { type: Number, set: function (v) { return Math.round(v) ;}}
}) ;