我有一组技术人员在下面。如何在一个命令中删除或拉取任务和保留日期中的数据?MongoDb删除2个数据
db.technicians.find().pretty()
{
"_id" : ObjectId("592acc916a32c48647427b2f"),
"firstName" : "Pj",
"lastName" : "Rizal",
"tasks" : [
ObjectId("593435177492fb214c3a8694"),
ObjectId("5934389179439d2c20f07210"),
],
"reservedDates" : [
{
"date" : "2017-06-29T16:00:00.000Z",
"time" : "2017-06-04T07:14:16.130Z",
},
{
"date" : "2017-06-29T16:00:00.000Z",
"time" : "2017-06-04T07:14:16.130Z",
},
]
}
db.technicians.update({},{ $拉:{reservedDates:{日期和时间: '2017-06-29T16:00:00.000Z'}}},{ 多:真} –