-1
如何在mongodb python中使用pymongo創建如下所示的mongodb搭配,以及如何插入僅新對象的地址數組?如何使用pymongo創建嵌入的數組列表並將其更新(在python中)?
{
_id: "joe",
name: "Joe Bookreader",
addresses: [
{
street: "123 Fake Street",
city: "Faketon",
state: "MA",
zip: "12345"
},
{
street: "1 Some Other Street",
city: "Boston",
state: "MA",
zip: "12345"
}
]
}