MCQs > IT & Programming > MongoDB > You'd like a set of documents to be returned in last name, ascending order. Which query will accomplish this?

MongoDB MCQs

You'd like a set of documents to be returned in last name, ascending order. Which query will accomplish this?

Answer

Correct Answer: Db.persons.find().sort({lastName: 1}}

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