Get oldest / newest document in *beat

In order to get around this problem I am changing my approach. Of course it created a new issue... But here's the follow up question:

Thank you!