Member since
06-17-2021
3
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 845 | 06-17-2021 11:00 PM |
06-18-2021
03:21 AM
Hello! Try to use flow UpdateAttribute - GetMongo. To UpdateAttribute create attr with value {
"header.timestamp": {
"$gt": {
"$date": "${startTimestamp}"
},
"$lt": {
"$date": "${endTimestamp}"
}
}
} To GetMongo in field Query insert name attr from prev step. RunMongoAggreation used for aggregation query, but select all docs is not effective, I think.
... View more
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