Hello,
can someone please give me a hint which one is correct answer and why? thanks!
this is Node.js
and this one,
Hello,
can someone please give me a hint which one is correct answer and why? thanks!
this is Node.js
You asked for hints so here are they
Which function name do we use to delete a single document (first match)? Delete Documents — MongoDB Shell
what does an empty object, {}
, mean in a multi-document update? Update Documents — MongoDB Shell
what if field does not exists in the document when you use “$set”? $set — MongoDB Manual
thank you for the hints, Yilmaz Durmaz,
so, can I ask questions further, why the answers are incorrect?
I really don’t know but a possible explanation is the use of a mix of questions with python exams. python uses delete_one()
. Is that the correct answer you are given?
Thank you Yilmaz Durmaz for answering my question.
that was what I was guessing (mix of questions with python) when I reviewed my test results.
Hopefully, this will NOT happen during the REAL EXAM.
thanks again!