For this issue, you'll need to work with our MongoDB database to read values generated by other parts of the program.
Please accomplish the following:
- Create a new API route called "update-points"
- When the API is called, run a program that collects relevant data from the database and aggregates point values.
- Point values are to be stored in a local csv file. Only use a single primary key to identify users.
- Create a function that returns an array of the top 10 point-getters called getPointLeaders().
For URI, message Pita on discord, I'll get it to you.
Here's a diagram of the db design:

125 points
For this issue, you'll need to work with our MongoDB database to read values generated by other parts of the program.
Please accomplish the following:
For URI, message Pita on discord, I'll get it to you.
Here's a diagram of the db design:

125 points