文檔結(jié)構(gòu)如下{ name: 4, list: [{ id: "a", date: 1504195200000, other: "c" },{ id: "b", date: 1504195200000, other: "c" }]}匹配name, list[id]、list[date],只更新匹配list中的元素,否則創(chuàng)建文檔并添加新的值到list數(shù)組中
MongoDb 對(duì)象數(shù)組更新操作?
炎炎設(shè)計(jì)
2018-08-14 21:10:46