im new to Mongodb, i have collection which looks like this;
empno points date_saved
6000 80 "2021-09-18T08:25:49.319Z"
5000 60 "2021-09-18T08:25:49.319Z"
7000 70 "2021-09-18T08:25:49.319Z"
6000 60 "2021-09-17T08:25:49.319Z"
I want to pass a specific empno for example 6000 to the query and I need to get the max points he has in the table. Where the output should be
80
how can I do this?