MongoDB C100DBA Exam - Topic 1 Question 53 Discussion
Consider the following example document from the sample collection. All documents in this collection have the same schema.Which of the following queries will replace this with the document.
C) db.sample.update( { '_id' : 3 > , { '_id' : 7 , 'c' : 4 , { '$unset' : [ 'a' , 'b' ] } } )
A) db.sample.update( { '_id' : 3 } , { '$set' : { '_id' : 7 , 'c' : 4 > > )
B) db.sample.update( { '_id' : 3 > , { '_id' : 7 , 'c' : 4 > , { 'justOne' : true > ) / This operation cannot be done with a single query.
D) db.sample.update( { '_id' : 3 > , { '_id' : 7 , 'c' : 4 > )
Elenore
8 months agoBrianne
8 months agoRima
9 months agoYvonne
9 months agoRoselle
9 months agoLacresha
9 months agoValda
9 months agoChery
9 months agoKattie
9 months agoTamesha
9 months agoProvidencia
9 months agoBok
9 months agoLayla
10 months ago