전산/Database
mongodb insert field
def add_field_in_collection(companyCode, agentCode): body={ "is_activate": int(1) } print("companyCode : {0}, agentCode : {1}".format(companyCode, agentCode)) collection_this = mongo_client[companyCode][agentCode] queryCondition = { "type": "INTENT" } collection_this.update(queryCondition, {'$set': body}, upsert=False, multi=True) print("Creating for {}:{}".format(companyCode, agentCode)) type이라..
2021. 3. 3. 17:12
최근댓글