Mangusta schema de tip dublu

Exemple de cod

0
0

mangusta schema de tip dublu

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 },
});

Pagini similare

Pagini similare cu exemple

În alte limbi

Această pagină este în alte limbi

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................