0
我有一個集合的模式(按照例如下面如何將對象陣列中在mongoosejs
{ __v: 10,
_id: 52d43fcfde1899c613000003,
container: 52d3dedaebbbc0ab73000003,
name: 'R(25Dec-5Jan).pdf',
parent: 52d3dedaebbbc0ab73000004,
reference_url: '/folder=52d3dedaebbbc0ab73000003&folder=52d3dedaebbbc0ab73000004&file=52d43fcfde1899c613000003',
type: 'Custom',
uuid: '893e4317-4688-4c2a-9bbb-80a3d0fee9b1',
signatures:
[ { __v: 0,
_id: 52e66f4e7e6c3f9b39a43eb6,
initiated_by: 52b47058fe5e3493a2cf8365,
envelope_id: '0731dfc2-533f-4a68-99ed-326b2410684a',
status: 'signed',
name: '*********************',
email: '*************',
docusign: [Object] },
{ _id: 52e66fa82721b5bd393d7761,
initiated_by: 52b47058fe5e3493a2cf8365,
envelope_id: '0738582f-c272-44b7-8ccc-161f1065850e',
status: 'pending_signature',
name: '*************',
email: '************',
docusign: [Object],
__v: 0 },
]
}
如何更新在一個簽名對象的狀態的集合項更新的對象的屬性我怎樣才能從基於envelope_id的簽名數組中刪除一個單一的對象?