1. 程式人生 > >Mongodb內嵌物件關聯查詢

Mongodb內嵌物件關聯查詢

db.table.find({ "createTime" : { "$gte" : ISODate("2018-10-30T00:00:00Z"),"$lt":ISODate("2018-10-30T23:59:00Z")}, 
"equip.$id":ObjectId("5bc84e77e4b07af3586c10ce") })