提BUG:aggregate.match()不能用command匹配
请看代码:
let querySum = await collection .aggregate() .match({ dateNum:_.eq(20190723) }) .group({ _id: '$date', sale: $.sum('$goodsPrice') }) .end() |
使用_.eq竟然查不出数据,去掉它就可以。
