In mongodb how do you update a document partially?
Suggested Answer: D
Get Premium C100DBA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
21 comments · newest first
VA
Vanda
1 month ago
$project is for shaping output, not updating.
ST
Stephanie
1 month ago
Agreed, $modify isn't even a real operator.
BR
Brittni
1 month ago
$update sounds wrong to me.
WI
William
2 months ago
I feel confident about that too.
EL
Elenor
2 months ago
Yeah, $set is for partial updates.
CE
Cecil
2 months ago
I think it's D) $set.
MA
Maddie
2 months ago
Definitely $set! It modifies specific fields.
OW
Owen
2 months ago
$project is for projections, not updates.
SA
Sanda
2 months ago
I agree, $set is the way to go.
KA
Karima
3 months ago
$update sounds right, but it's not specific.
GU
Gussie
3 months ago
Yeah, $set is for partial updates.
AN
Anabel
3 months ago
I think it's D) $set.
BA
Barbra
3 months ago
I’m surprised $project is even an option here!
CA
Carole
3 months ago
100% agree, $set is the way to go!
ME
Melvin
4 months ago
Wait, is $modify even a thing?
RO
Rozella
5 months ago
I thought it was $update?
VI
Virgina
5 months ago
It's definitely $set for partial updates!
RO
Rory
6 months ago
I thought $project was related to querying rather than updating, so I’m leaning towards $set too.
LU
Lucy
6 months ago
I’m pretty certain that $set is the correct answer, but I wish I could recall the exact syntax we practiced.
SE
Serina
6 months ago
I remember something about $update, but it feels like that might not be the right choice for partial updates.
FR
Freeman
6 months ago
I think we used the $set operator in our practice questions for partial updates, but I'm not completely sure.