How to query most recent upsert

Hello,
I’m wondering if there is any way to query the most recent(s) upserts.

One option for future would be, adding a timestamp into metadata and then query over that metadata value?