我有一个组织表,其中 embeds_many organization_memberships 具有不同的字段。我想从数据库中捕获每个组织成员数据作为模板,并在用户修改后,我想将这些详细信息作为模板保存在用户表中。
{
"org_name": "xxxxx",
"_id": {
"$oid": "4fed411179216d10f000000c"
},
"organization_memberships": [
{
"family_currently_enrolled": "Yes",
"_id": {
"$oid": "4fed411179216d10f0000007"
},
"org_id": "KL-NWK-2",
"age_group_and_school_days": "Two-year-old Tuesday/Thursday",
"active_member_of_ppc": "Yes"
},
{
"ssssssss": "Yes",
"_id": {
"$oid": "4fed411179216d10f000000a"
},
"org_id": "KL-NWK-1",
"eeeeeee": "Two-year-old Tuesday/Thursday",
"ddddddd": "Yes",
"ttttt": "Two-year-old Tuesday/Thursday",
"uuuuuuu": "Yes"
}
],
}
有没有人想建议我,我们怎样才能做到这一点?