AdminBenjamin
(Admin, MongoDB)
My feedback
-
2 votes
AdminBenjamin (Admin, MongoDB) shared this idea ·
-
2 votes
An error occurred while saving the comment -
26 votes
We’re currently researching the best way to add support for this.
An error occurred while saving the comment AdminBenjamin (Admin, MongoDB) commented
Thanks for the suggestion Michael! We are actually planning on adding support for something similar in the coming quarters so please keep an eye on this idea, it will show progress updates as we proceed.
-
9 votes
AdminBenjamin (Admin, MongoDB) shared this idea ·
-
12 votes
AdminBenjamin (Admin, MongoDB) shared this idea ·
-
43 votes
AdminBenjamin (Admin, MongoDB) shared this idea ·
-
33 votes
AdminBenjamin (Admin, MongoDB) shared this idea ·
This can actually be done today using $expr, here's an example where the magic number is just the number of days in milliseconds
{
"archive": true,
"$expr": {
"$lte": [
"$bucket_end_date",
{
"$subtract": [ "$$NOW", 146880000000 ] }
]
}
}