Date() in query in grafana

Please Heeeelp
I want to filter on the results of the last week based on the “Updated” field.
grafana does not accept the function Date() which returns the current date

db.TableName.aggregate([
{"$match":
{
“Updated”: {"$gte":Date(Date() - 7 * 60 * 60 * 24 * 1000)}
}
}])

What can I do !!!

This topic was automatically closed after 365 days. New replies are no longer allowed.