N1QL Couchbase 更新键为动态的嵌套对象的属性

N1QL Couchbase update properties on nested object where key is dynamic

如果对象的键是数字,如何将所有 active 属性更新为 false:

 {
  "id": 1,
  "items": {
    "2": {
      "id": 2,
      "active": true
    },
    "3": {
      "id": 3,
      "active": true
    },
    "5": {
      "id": 5,
      "active": true
    }
  },
  "status": true
}
UPDATE default AS d
SET d.items.[v].active = false 
    FOR v IN OBJECT_NAMES(d.items) END
WHERE .....