busy-horse-73824
09/14/2022, 2:41 PMeager-rainbow-87882
09/14/2022, 2:46 PMfuture-teacher-7046
{
"created_at": {
"$gt": {
"$dateSubtract": {
"startDate": "$$NOW",
"unit": "day",
"amount": 7
}
}
}
}
We would have a nice UI on top of that, but that's what I'm thinking for the underlying JSON.
This would require SDK changes to support, so have to be a little careful about versioning and how we roll this out.eager-rainbow-87882
09/14/2022, 3:01 PMbusy-horse-73824
09/14/2022, 3:03 PMfuture-teacher-7046
attributes: {
created_at: "2022-09-01T01:23:45Z"
}
The default behavior would stay the same:
{
"created_at": {
"$gt": "2022-01-01"
}
}
But, you could opt in to referencing a relative time instead (now - date in seconds)
{
"created_at.relative": {
"$gt": -604800
}
}
busy-horse-73824
09/14/2022, 4:13 PMdry-knife-80930
10/31/2022, 1:01 PMfuture-teacher-7046