MCQs > IT & Programming > MongoDB > Best describes the query below? db.col1.findAndModify({ query: {'name': 'val1'}, update: { $inc: { 'subObj.field1': 1 } });

MongoDB MCQs

Which statement best describes the query below? db.col1.findAndModify({ query: {"name": "val1"}, update: { $inc: { "subObj.field1": 1 } });

Answer

Correct Answer: Returns a single document where name is val1 and field1 is unmodified in the returned document

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it