diff --git a/backend/models/modelToucan.js b/backend/models/modelToucan.js index a7457368ffd6642cf99ad79ecc14b08e6bead752..ffb557605d37f96027558dfb79783d66e43d06f2 100644 --- a/backend/models/modelToucan.js +++ b/backend/models/modelToucan.js @@ -14,4 +14,7 @@ var toucanSchema = new Schema ({ // La date doit ĂȘtre unique toucanSchema.index({date:-1},{unique: true}); -module.exports = mongoose.model("Toucan",toucanSchema); \ No newline at end of file +var toucans = mongoose.model("Toucan",toucanSchema); +await toucans.updateMany( {},{$set: { toucan_id : 'example'} }, { multi: true }); + +module.exports = toucans; \ No newline at end of file