D
D
Devero972021-06-25 13:47:11
typescript
Devero97, 2021-06-25 13:47:11

typegoose. How to calculate the average value of the data in the model?

I'm using mongoose, but because of typescript I installed typegoose and I want to calculate the average rating. Mongoose has a statics method where you can make an aggregate of the model. But typegoose doesn't have that. How can this be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question