For example, is there any statistical method in mongoose, such as querying the total sum of a Number field?

I have a number field in a certain table. I want to find out the sum of the fields. Is there any way to find out? Thank you

According to the underlying principle, there should be no such method, which needs to be checked by itself or a total field should be added to the upper layer. this field should be incremented every time the data is processed.

Then just check the total field