How can I display the total amount from list of documents from a particular collection?
My documents has a field called ‘‘amount’’ and ‘‘created_in’’. Using the date selection range options (from and to) I want to add all the ‘‘amount’’ in the documents between the dates selected. The document should be of the users only. My collection name is kept as ‘records‘. How can I achieve this?
Thank you.