摘要:
db.students.update( { _id: 1 }, { $push: { quizzes: { $each: [ { id: 3, score: 8 }, { id: 4, score: 7 }, { id: 5, score: 6 } ], $sort: { score: 1 } } 阅读全文
摘要:
http://blog.csdn.net/yaomingyang/article/details/78701643 http://blog.csdn.net/yaomingyang/article/details/78701643 一、$pull修饰符会删除掉数组中符合条件的元素,使用的格式是: [ 阅读全文