ditto-lib / live.ditto / DittoStore / queriesHashMnemonic

queriesHashMnemonic

fun queriesHashMnemonic(queries: Array<DittoLiveQuery>): String

Returns a sequence of English words representing the current version of the given queries. When a document matching such queries gets mutated, the words will change as well.

Please note that the resulting sequence of words depends on how queries are constructed, so you should make sure to always compare hashes generated with the same set of queries.

Parameters

queries - : A list of DittoLiveQuery objects that you want to get the mnemonic hash for.

Return
A string representing the current version of the given queries.