Type de schéma de mangouste Double
const mongoose = require("mongoose");
require('@mongoosejs/double'); //plugin to support Double in mongoose
const ListSchema = new Schema({
description: { type: String, required:true },
weight: { type: mongoose.Schema.Types.Double, required: true },
});
Sore Shrew