Edit a Document

How-to update a document in TerminusDB and TerminusCMS using 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 it. This example shows how -

doc = {
    '@id'     : 'Player/George',
    '@type'   : 'Player',
    'name'    : 'George',
    'position': 'Center Back'
  }

doc["position"] = "Full Back"
client.update_document(doc)

Last updated