I want to update a field in my MongoDB collection as null. Is it possible to do it using Python? The below code is what I tried. I got this exception:
bson.errors.InvalidDocument: documents must have only string keys, key was None
from pymongo import MongoClient
client = MongoClient('localhost:27017')
db = client.data
address = None
db.employee.update({'email':"[email protected]"},{$set:
{'address':address}})