How to update a specific field in Mongodb knowing it's name?

前端 未结 0 782
耶瑟儿~
耶瑟儿~ 2021-01-15 02:38

I have the following code

def update_field(db_entity, field_name)
  db_entity_value = db_entity.attributes[field_name]
  if db_entity_value == false
    db_en         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题