我尝试使用MongoDB查询在特定日期范围内搜索MongoDB ID。但这会引发错误,任何人都可以提出任何建议。
Mongo数据库数据
[{
id:1,full_name:"naveen",date:"2019-11-02"
},{
id:2,full_name:"naveen123",date:"2019-11-04"
}]
mongodb查询
db.collection.find({id:1,date:{ '$gte': 2019-11-02,'$lt': 2019-11-06 }})