I am writing a process that will run every 1 hour and connect to a mongodb collection. The document in CollectionA has a timestamp key associated. The process then has to search all the new documents inserted in another collection Collection B after the timestamp we got before.
Collection A-(has only 1 documnet which saves the timestamp)
_id:Properties
Timestamp:ISODate("2019-02-13T06:44:45.387Z")
Collection B-(has multiple documents which get updates all thee time)
But it does not have timestamp field.
I have to pick 'Timestamp' from collection A and retrieve all those documents from Collection B that are added after that timestamp