Suppose we have a collection of users with different ages. Which of the following calls will find the oldest person with the name John?
Correct Answer: db.users.aggregate({$match: {name: "John"}}, {$sort: {age: -1}}, {$limit: 1});
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More MongoDB MCQ Questions