Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
Not Needed
Description
Slack thread: https://mongodb.slack.com/archives/C0U7K0MC3/p1623423645061500
Pipeline:
[{
|
$match: {
|
timestamp: {
|
$gte: new Date(new Date() - 7 * 60 * 60 * 24 * 1000)
|
}
|
}
|
}, {
|
$group: {
|
_id: "$requestedRoute",
|
"hits": {
|
"$sum": 1
|
}
|
}
|
}, {
|
$match: {
|
hits: {
|
$gt: 1
|
}
|
}
|
}, {
|
$sort: {
|
hits: -1
|
}
|
}]
|
works fine but displays "newDate is not defined" when trying to export to Node.js.