powered by
Cancels all pending operations in the current transaction without committing them. This allows you to discard changes since the last commit.
am_rollback(doc)
The document doc (invisibly)
doc
An Automerge document
doc <- am_create() am_put(doc, AM_ROOT, "key", "value") # Changed my mind, discard the put am_rollback(doc) am_close(doc)
Run the code above in your browser using DataLab