background: dealing with sales data collection (SalesCollection) containing salesDate and salesAmount, autopublish and insecure is still NOT removed to simplify testing
objective: create daily report of sales amount per day
where I stand:
- installed meteorhacks:aggregate,
- created pipeline in server side $group: _id: salesDate $sum: “$salesAmount”
then what? how do we call the results on client side? do we have to create new collection containing the result and find() said collection?
I must be very stupid, scoured the internet but all resources seem to only discuss about the pipeline stages and stop there (assuming people know what to do next --> unfortunately, I don’t).
Thanks in advance!