DittoSingleDocumentLiveQueryEvent
public struct DittoSingleDocumentLiveQueryEvent
Provides information about a live query event relating to a single document live query.
-
States whether the event is an
initialevent or not.Declaration
Swift
public let isInitial: Bool -
The document’s previous state.
This will always be
nilifisInitialistrue. It will also benilif the document was removed or evicted andisInitialisfalse.Declaration
Swift
public let oldDocument: DittoDocument? -
Returns a hash that represents the document.
Declaration
Swift
public func hash(document: DittoDocument?) -> UInt64Parameters
documentThe document delivered alongside the live query event.
Return Value
A hash that represents the document.
-
Returns a pattern of words that together create a mnemonic, which represents the document.
Declaration
Swift
public func hashMnemonic(document: DittoDocument?) -> StringParameters
documentThe document delivered alongside the live query event.
Return Value
A pattern of words that together create a mnemonic, which represents the document.