I have a mongodb collection like:
db.kids.find()
//results
[
{name:'tom', age:10},
{name:'alice', age:12},
....
]
I need a query to get MAX 'age' from this collection
like in SQL: SELECT MAX(age) FROM kids WHERE 1
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…