Suppose there is a collection:

Model: {title: lsdmk, price: 3, title: ksndk, priceL: 8, title: ksndk, priceL: 1, title: ksndk, priceL: 9, title: ksndk, priceL: 0, title: ksndk, priceL: 2} 

I need to get only one document with the minimum value of the price field:

  {title: ksndk, priceL: 0} 

    1 answer 1

     db.collection.find({}).sort({ priceL: -1 }).limit(1)