i have a collection name called "orders" in that i got a filed called "totalPrice" which contains the total price of that particular cart.
so now i am building the admin dashboard where i need to show total amount sold which will be the SUM of all the "totalPrice" value in all the orders
how to do this ...excuse me please if i am missing something and this is quite a basic one