Answers for "mongoose schema cast decimals"

1

mongoose schema cast decimals

var intHolderSchema = new mongoose.Schema({
  'integer': { type: Number, set: function (v) { return Math.round(v) ;}}
}) ;
Posted by: Guest on March-05-2021

Browse Popular Code Answers by Language