如何减去平均持续时间

时间:2018-03-21 08:57:33

标签: javascript node.js mongodb mongoose aggregation-framework

我正在尝试此聚合,但输出反向显示

{
    "_id" : {
        "SWITCHID" : "Z4-W40-SS451A/5"
    },
    "on_minus_off" : -472.0131230555556
}

输出是:

202.50562416666668-269.5074988888889=-67.00187472222222

但预期输出为:

PushNotificationIOS.addEventListener('notification', (notifIOS) => {}

1 个答案:

答案 0 :(得分:1)

我认为你的病情是错误的

"$eq": ["$STATUS", "ON"]

应该是

"$eq": ["$STATUS", "LIGHTS ON"]
相关问题