1
{
"_id": ObjectId("531963b60748a6078fe4f345"),
"acces": "172.1.6.2.18",
"adapter": "Win 9",
"flavour": "LokiSnap",
"jobid": "8",
"os": "VM-WIN7-32",
"results": "",
"tests": "Test01"
}
這裏result
領域的蒙戈db表是""
。 如何更新基於jobid
更新表後,用{"test" : "conenct","os":"osf"}
這個表值result
是
{
"_id": ObjectId("531963b60748a6078fe4f345"),
"acces": "172.1.6.2.18",
"adapter": "Win 9",
"flavour": "LokiSnap",
"jobid": "8",
"os": "VM-WIN7-32",
"results": {
"test": "conenct",
"os": "osf"
}`,
"tests": "Test01"
}
不要做別的答案。這將取代整個文檔,而不僅僅是結果字段。 –