MCQs > IT & Programming > MongoDB > Which of the following is the correct operation to query a document for both 'Football' and "Reading" within the interests data collected from a profile?

MongoDB MCQs

Which of the following is the correct operation to query a document for both 'Football' and "Reading" within the interests data collected from a profile?

Answer

Correct Answer: db.profile.find({interests: {$all : ["Football", "Reading"] }})

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