这是我的结构
{
"_id": ObjectId,//PropertyTrackingModel Object
"Items": [{
"Date": "2018-01-29",
"Tracks": [{
"ModifiedDate": "2018-06-29T10:21:03.1268154+00:00"
}]
}, {
"Date": "2018-08-29",
"Tracks": [{
"ModifiedDate": "2018-08-29T10:21:03.1268154+00:00"
}]
}]
}
所以我想在date ==“ 2018-08-29”集合中插入新曲目 就像每日数据一样
最后我需要
{
"_id": ObjectId,//PropertyTrackingModel Object
"Items": [{
"Date": "2018-01-29",
"Tracks": [{
"ModifiedDate": "2018-06-29T10:21:03.1268154+00:00"
}]
}, {
"Date": "2018-08-29",
"Tracks": [{
"ModifiedDate": "2018-08-29T10:21:03.1268154+00:00"
},
{
"ModifiedDate": "2018-08-29T10:21:03.1268154+00:00"
}]
}]
}
谢谢大家 使用C#mongo驱动程序功能的便捷方式