Edit a Document with the Python Client
To update a document in your database, you first need to get the document you want to change. You then need to make your changes and update them. This example shows how -
doc = {
'@id' : 'Player/George',
'@type' : 'Player',
'name' : 'George',
'position': 'Center Back'
}
doc["position"] = "Full Back"
client.update_document(doc)