I have been using the options of making a query of the collection by ordering them and applying a filter by one of the fields of the collection, but when I apply the action that determines when it gets the value I need it repeats it without stopping, since I have to I run it every 1 hour, and my intention is to look for the last document that only has a value in that field that I am filtering, so that the action applies