Member since
06-17-2021
3
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1021 | 06-17-2021 11:00 PM |
06-17-2021
11:00 PM
Im convert match field to timestamp then compare. Resolved [
{
"$addFields": {
"timestamp": {
"$toLong": "$modified_at"
}
}
},
{
"$match": {
"timestamp": {
"$gte": ${stored.state:toDate("yyyy-MM-dd HH:mm:ss"):toNumber()}
},
"timestamp": {
"$gte": ${current.state:toDate("yyyy-MM-dd HH:mm:ss"):toNumber()}
}
}
},
{
"$skip": ${offset}
},
{
"$limit": ${limit}
},
{
"$project": {
"code": 1
}
}
]
... View more