countMatchingIDs

inline fun <ID : Any> Field<ID, *>.countMatchingIDs(reductionType: ReductionType = ExcludingSelf, crossinline predicate: Predicate<ID>): Int

Counts the number of field IDs that satisfy the given predicate.

By default, the local ID is excluded from the count. It is included only if reductionType is IncludingSelf.

Return

the number of IDs that satisfy the predicate.

Parameters

reductionType

specifies whether to include the local ID in the count (default is ExcludingSelf).

predicate

the condition to evaluate for each ID.