db.ListingsAndReviews.find({property_type: Apartment}, {listing_url:1, property_type:1, price:1, address.country_code:1}).sort({price:-1}).pretty() How would you modify this query to use the .limit() function
Fantastic news! We've Found the answer you've been seeking!
Question:
db.ListingsAndReviews.find({"property_type": "Apartment"}, {"listing_url":1, "property_type":1, "price":1, "address.country_code":1}).sort({"price":-1}).pretty()
How would you modify this query to use the .limit() function to display only the top three properties?
Related Book For
Posted Date: