2021年3月25日星期四

Grab count of a specific field in database

So I have a schema, and in that schema there is an object called "caseCount" with a Number Value. I simply want to fetch every value for each object of "caseCount" and add it up. Could somebody point me in the right direction? If I need to explain some more, I'm happy to do so. Thank you!

Schema:

const Profile = Schema({      userID: String,      messageCount: Number,      caseCount: Number,      Skins: Array,  });  
https://stackoverflow.com/questions/66810142/grab-count-of-a-specific-field-in-database March 26, 2021 at 10:15AM

没有评论:

发表评论