This commit is contained in:
counterweight 2025-06-01 23:33:27 +02:00
parent 125107da50
commit 4cd36ea3fc
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 34 additions and 2 deletions

View file

@ -17,7 +17,15 @@ const note = new Note({
important: true,
});
note.save().then((result) => {
/* note.save().then((result) => {
console.log("note saved!");
mongoose.connection.close();
});
*/
Note.find({}).then((result) => {
result.forEach((note) => {
console.log(note);
});
mongoose.connection.close();
});