@dxos/echo
    Preparing search index...

    Type Alias TransactionOptions

    Options for Transaction.

    type TransactionOptions = {
        root?: "replace" | "update";
    }
    Index

    Properties

    Properties

    root?: "replace" | "update"

    How Transaction.commit publishes the staged changes.

    • replace (default): builds a new space root and starts a new epoch with it. Peers adopt the new root, so writes made to the old root after the transaction began are lost.
    • update: writes the changed links and inline objects into the current root in one atomic change. No epoch is started, and concurrent writes to the root merge.