【发布时间】:2015-08-06 13:49:10
【问题描述】:
我有一个这样的学校文档结构:
{
"_id":"tnoMB2PhsPPQKcafz",
// some other property here
"students":[{
"student":{
"ref_id":"eaH7JsponapSWCGf6",
"name":"name",
"family":"family",
"grade":12
},
// many other student here
]}
我想更新已确定学校中已确定学生的成绩属性,但我不知道如何执行此操作。
例如,我有学校 _id (tnoMB2PhsPPQKcafz) 和学生 ref_id (eaH7JsponapSWCGf6),想将确定的学生成绩从 12 更新到 18。
【问题讨论】:
标签: mongodb meteor mongodb-query