-1
嗨,大家好,我得到了下面的例子:MongoDB的更新證的全部iterances在陣列
{
"_id" : ObjectId("591dea6af63ae97d813d3865"),
"borough" : "Queens",
"cuisine" : "American ",
"grades" : [ "A", "A", "B", "B" ],
"name" : "Yummy Fried Chicken And Pizza",
"restaurant_id" : "50000605"
}
我想改變這一切了S系列的一個檔次,我想這個查詢:
db.restaurants.update({},{$set: {grades : "S"}})
它似乎沒有工作,任何想法如何做到這一點?