我有一个如下存储的Task文档:
{
"AssignTo": [
{
"$ref": "OrganisationUser",
"$id": ObjectId("533665fcd841f8c00b000029"),
"$db": "workStakMaster"
}
],
"BudgetedTime": "",
"Client": {
"$ref": "organisationClient",
"$id": ObjectId("53327cebd841f8dc1000002a"),
"$db": "workStakMaster"
},
"Project": {
"$ref": "organisationProject",
"$id": ObjectId("5332c9afd841f8fc1000002b"),
"$db": "workStakMaster"
},
"RepeatType": "onetime",
"TaskStatus": "NotStarted",
"TimeSpentTillDate": "",
"createdAt": ISODate("2014-04-03T10:57:31.0Z"),
"description": "hi ",
"isActive": true,
"isChargable": "No",
"name": "A Task",
"reminder": {
"Daily": {
"Time": ""
}
},
"updatedAt": ISODate("2014-04-03T10:57:31.0Z")
}
我想更新" AssignTo" (将许多用户存储为关系)如果是,则只有字段可以让我知道确切的方法。
谢谢你提前