2017年12月4日
摘要: db.students.update( { _id: 1 }, { $push: { quizzes: { $each: [ { id: 3, score: 8 }, { id: 4, score: 7 }, { id: 5, score: 6 } ], $sort: { score: 1 } } 阅读全文
posted @ 2017-12-04 23:53 jayruan 阅读(413) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/yaomingyang/article/details/78701643 http://blog.csdn.net/yaomingyang/article/details/78701643 一、$pull修饰符会删除掉数组中符合条件的元素,使用的格式是: [ 阅读全文
posted @ 2017-12-04 23:50 jayruan 阅读(11210) 评论(0) 推荐(0) 编辑