Skip to content
Snippets Groups Projects
Commit 6c6f9deb authored by Inès Yeterian's avatar Inès Yeterian
Browse files

nouvelle tentative

parent 746b4f09
No related branches found
No related tags found
No related merge requests found
...@@ -14,4 +14,7 @@ var toucanSchema = new Schema ({ ...@@ -14,4 +14,7 @@ var toucanSchema = new Schema ({
// La date doit être unique // La date doit être unique
toucanSchema.index({date:-1},{unique: true}); toucanSchema.index({date:-1},{unique: true});
module.exports = mongoose.model("Toucan",toucanSchema); var toucans = mongoose.model("Toucan",toucanSchema);
\ No newline at end of file await toucans.updateMany( {},{$set: { toucan_id : 'example'} }, { multi: true });
module.exports = toucans;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment