showing results for - "mongoose max record"
Jediah
30 Nov 2019
1const maxQuery = Goods.find({}).sort({ price: -1 }).limit(1).then(goods => goods[0].price);