{
$match: {
_id: ObjectId(“6645fe11b73219a4791ffe6c”),
“periodActivity.period.start”: {
$gte: new Date(“2023-01-01”)
},
“periodActivity.period.end”: {
$lte: new Date(“2024-12-31”)
}
}
},
In my aggregate query above is match part.
above three values I want to pass dynamically to aggregation pipeline, how to do that ?