yiiiiha
This commit is contained in:
parent
125107da50
commit
4cd36ea3fc
2 changed files with 34 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue