mongodb aggregate match multiple conditions code example
Example: mongodb aggregation $filter multiple conditions
cond: {
$and: [
{ $gte: ['$$item.timestamp_start', fromTimestamp] },
{ $lt: ['$$item.timestamp_start', toTimestamp] }
]
}
cond: {
$and: [
{ $gte: ['$$item.timestamp_start', fromTimestamp] },
{ $lt: ['$$item.timestamp_start', toTimestamp] }
]
}