Mongoose and MongoDB support aggregate functions, for example getting the sum of a column in a "table". We also do a find query with our Mongoose sum query to only get links from a certain user. Aggregate functions can be tricky with Mongoose, so I made a tutorial on how to do aggregate functions in Mongoose using groups, $sum and etc. I also show how to format the result of the aggregate function you get from Mongoose. Let me know if you guys would like to see more NodeJS/Mongo/Mongoose tutorials! Thanks for watching. Hitting LIKE really helps!
// Social Media
// Projects

0 Comments