SyntaxFix
Write A Post
Hire A Developer
Questions
Something I did recently, hope it helps. I have a list of dictionaries and wanted to add a value to some existing documents.
for item in my_list: my_collection.update({"_id" : item[key] }, {"$set" : {"New_col_name" :item[value]}})