ditto / live.ditto / DittoStore / queriesHash

queriesHash

fun queriesHash(queries: Array<DittoLiveQuery>): BigInteger

Returns a hash representing the current version of the given queries. When a document matching such queries gets mutated, the hash 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 hash for.

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