我是MOngoDB新手(来自CouchDB),在使用MonDB python驱动程序向MongDB中的文档添加新属性时遇到了问题.
例如,我有以下文档:
{
'_id':123456,
'text':"this is nice"
}
我想插入一个新属性,例如:
{
'_id':123456,
'text':"this is nice",
'created_time':datetime.datetime.now()
}
如何将created_time属性添加到文档中?
谢谢