hi all,
i am trying to update all documents in collection using pymongo
here is my update function,
def update():
for doc in mycol.find():
mycol.update({},{"$set":{"status":"approved"}})
but using above code i am able to update only one document,what i am doing wrong here
thanks in advance