@Prem_PK_Krishna we can directly use _id in the query without using the $exp right as shown in below query?
{
"_id": {
"$lt": ObjectId(Math.floor(new Date().setDate(new Date().getDate() - 14) / 1000).toString(16) + "0000000000000000")
}
}
Isn’t it better to use the existing _id field which is already indexed and has timestamp related info rather than adding new date field?