MongoDB查询日期是否等于当前日期

我觉得自己代码写的真的就没点问题啊,但是人家就报了一个异常 说意外的标识符,唉也没有啊 唔~

```
db.getCollection("Reply").aggregate([
{$match:
{
ObjectType:"WeightReview",
DateStr:{new Date():{$dateToString:{ format: "%Y-%m-%d", date: "$date" }}}
}
},
{$lookup:{
from:"User",
localField:"ToUserId",
foreignField:"id",
as:"userReply"
}}

])

```sql

异常信息:
[Parsing error] Line 5: Unexpected identifier