如何在ID为“ 5b6ef33ff2b0c73490d9f741”的文档中找到ID为“ 5b6ef34cf2b0c73490d9f742”的数组“ friends”中的对象并更新其“收藏夹”键?
{
"_id": {
"$oid": "5b6ef33ff2b0c73490d9f741"
},
"friends": [
{
"id": "5b6ef34cf2b0c73490d9f742",
"favorite": false
},
{
"id": "5b6ef34cf2b0c73490d9f743",
"favorite": false
}
],
"__v": 0
},
{
"_id": {
"$oid": "5b6ef33ff2b0c73490d9f745"
},
"friends": [
{
"id": "5b6ef34cf2b0c73490d9f742",
"favorite": false
},
{
"id": "5b6ef34cf2b0c73490d9f744",
"favorite": false
}
],
"__v": 0
}
答案 0 :(得分:0)
将 xfce4-panel --add-items=PANEL-NUMBER
与 update
$set