I have an MongoDb Object like
{
"_id": 1.
"updateAfter":"2021-06-28T03:31:53.000Z",
"isPassed": false
}
I want to update the "isPassed": true
after the specified time "updateAfter"
.
Lets say the current time is 29 May 12:30 pm. The updateAfter : 30 May 10: 50 am
. I am trying to isPassed: true
when the current time is over the 30 May(Or greater than the current time).
Is this possible with the MongoDB TTL indexing
process or any another idea like time scheduler
process?
How can i do this?