MCQs > IT & Programming > MongoDB MCQs > Which of the following would you use to query an inventory collection to get all items of type "food" with price less than $34?

MongoDB MCQs

Which of the following would you use to query an inventory collection to get all items of type "food" with price less than $34?

Answer

Correct Answer: db.inventory.find({type: "food", price: {$lt: 34}})

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