I am trying to update a mongodb collection using python. I am trying to update the collection using the ObjectId but it is not working.
result = myCollection.update_one(
{_id:"53298scc1c29d0s036c"},
{
"$set": {
"lname":"Jones"
}
}
)