{
"_id" : ObjectId("5c5b174338f31008e62db590"),
"children_ids" : [],
"content_ref" : [
ObjectId("5c5b174338f31008e62db58f")
],
"labels" : 4.0,
"name" : "greater vote follow remove operation",
"parent_ids" : [
ObjectId("a22222222222222222222209")
],
"primary_contact" : [],
"seconday_contact" : []
}
现在,我想清除content_ref值。就像上面粘贴的示例一样,基于content_ref ID,我想清除该值,然后该怎么做? $ Pull命令在python spyder中不起作用,并给我语法错误。
我正在使用以下命令:
db.node.update{ content_ref: ObjectId(ids) }, { $pull: { content_ref: { } } } )