js-bao-wss-client / DocumentMetadataChangedEvent
Interface: DocumentMetadataChangedEvent
Payload of the documentMetadataChanged event (client.on("documentMetadataChanged", ...)). Fired when the locally cached metadata for a document is created, updated, evicted, or deleted. metadata is the new entry (or null when removed), changedFields lists what changed, and source says whether the change came from a local edit, a server update, or local persistence.
Properties
action?
optionalaction?:"created"|"updated"|"evicted"|"deleted"
changedFields?
optionalchangedFields?:string[]
documentId
documentId:
string
metadata
metadata:
LocalMetadataEntry|null
source?
optionalsource?:"server"|"local"|"idb"