如题
{
"name":"test",
"age":27,
"courses":[
{
"name":"english",
"teacher":"Mr Li"
},
{
"name":"chinese",
"teacher":"Li Lei"
}
]
}
请问使用mongo操作json的时候如何根据name获取对象然后修改courses.name="english"的"teacher"的值!