File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ Kaikki operaation suorituksen jälkeinen koodi kirjoitetaan tapahtumankäsitteli
398398``` js
399399Note .find ({})
400400 .then (notes => {
401- return notes[0 ].remove ()
401+ return notes[0 ].deleteOne ()
402402 })
403403 .then (response => {
404404 console .log (' the first note is removed' )
@@ -424,7 +424,7 @@ Ylempänä oleva monimutkaisempi esimerkki suoritettaisiin awaitin avulla seuraa
424424
425425``` js
426426const notes = await Note .find ({})
427- const response = await notes[0 ].remove ()
427+ const response = await notes[0 ].deleteOne ()
428428
429429console .log (' the first note is removed' )
430430```
@@ -442,7 +442,7 @@ const main = async () => { // highlight-line
442442 const notes = await Note .find ({})
443443 console .log (' operaatio palautti seuraavat muistiinpanot' , notes)
444444
445- const response = await notes[0 ].remove ()
445+ const response = await notes[0 ].deleteOne ()
446446 console .log (' the first note is removed' )
447447}
448448
Original file line number Diff line number Diff line change @@ -737,7 +737,7 @@ Kaikki operaation suorituksen jälkeinen koodi kirjoitetaan tapahtumankäsitteli
737737``` js
738738Note .find ({})
739739 .then (notes => {
740- return notes[0 ].remove ()
740+ return notes[0 ].deleteOne ()
741741 })
742742 .then (response => {
743743 console .log (' the first note is removed' )
@@ -763,7 +763,7 @@ Ylempänä oleva monimutkaisempi esimerkki suoritettaisiin awaitin avulla seuraa
763763
764764``` js
765765const notes = await Note .find ({})
766- const response = await notes[0 ].remove ()
766+ const response = await notes[0 ].deleteOne ()
767767
768768console .log (' the first note is removed' )
769769```
@@ -781,7 +781,7 @@ const main = async () => { // highlight-line
781781 const notes = await Note .find ({})
782782 console .log (' operaatio palautti seuraavat muistiinpanot' , notes)
783783
784- const response = await notes[0 ].remove ()
784+ const response = await notes[0 ].deleteOne ()
785785 console .log (' the first note is removed' )
786786}
787787
You can’t perform that action at this time.
0 commit comments