BetaBetadocumentThe ID of the document version the patches apply to (e.g. a draft ID).
BetaoriginWhether the transaction originated from this client or another one.
BetapatchesThe patch operations, rooted at the document.
Optional BetapreviousThe revision the document was at before this transaction.
BetatimestampThe timestamp of the transaction.
BetatransactionThe transaction ID that carried these patches.
Betatype
Event emitted when patches for a document are observed through the listener.
Unlike the whole-document snapshots the store keeps, these are the raw patch operations from the transaction that produced the change, preserving the operational intent of the edit (e.g. keyed array inserts/unsets). Consumers that maintain their own local state, like collaborative text editors, can apply these directly instead of diffing document snapshots.
originis'local'when the transaction was submitted by this document store instance (an own edit observed back through the listener) and'remote'when it came from another client.