0

I have a MongoDB database containing a series of values including a Number field, I wish to get the maximum number, minimum and average. How is the best way to do this using mongoosejs and nodejs?

h00j
  • 308
  • 1
  • 7
  • 18

1 Answers1

0

I recomend you to use "agregation".

Here you can find some examples: SQL to Agregation

I hope it helps. Regards,