Periodic aggregations on MongoDB Atlas
MongoDB Stitch triggers enable you to execute application and database logic automatically, either in response to events or based on a pre-defined schedule. 

As per MongoDB official documentation, Stitch supports three types of triggers:


  Database triggers, which can automatically respond when documents are
  added, updated, or removed in a linked MongoDB collection.
  
  Authentication triggers, which execute additional server-side logic
  when a user is created, authenticated or deleted.
  
  Scheduled triggers, which execute functions at regular intervals
  according to a pre-defined schedule.


The Scheduled triggers may help you in achieving your expected behavior.