findByQuery

abstract fun <T : RealmObject> findByQuery(query: RealmQuery<T>): Subscription?

Find the first subscription that contains the given query. It is possible for multiple named subscriptions to contain the same query.

Return

the first subscription containing the query or null if no match was found.

Parameters

query

query to search for.