Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose max record

const maxQuery = Goods.find({}).sort({ price: -1 }).limit(1).then(goods => goods[0].price);
 
PREVIOUS NEXT
Tagged: #mongoose #max #record
ADD COMMENT
Topic
Name
9+7 =