I have a custom collection in the database called Account_Transactions. In this collection there is a column called Account_ID and a column named Amount. I need to sum all of the Amount column records Where the Account_ID = a specific Account_ID parameter passed from the application.
I also need to create a service to sum all Amounts grouped by the Account_ID.
I have played around with for loops to do this, but I am struggling.
Thanks